🗒️Installation
Database
Run this on your database
CREATE TABLE player_reputation (
cid VARCHAR(255) PRIMARY KEY,
player_name VARCHAR(255),
rep INT DEFAULT 0,
completed_missions INT DEFAULT 0
);
Dependencies
Lab hint-ui : https://github.com/LabScripts/lab-HintUI (optional)
oxmysql : https://github.com/overextended/oxmysql
Kevin Dialogue : https://github.com/KevinGirardx/kevin-dialogue (optional)
zf-missionfollowups : https://github.com/zf-labo/zf-missionfollowups (optional)
Devyn Interact : https://github.com/darktrovx/interact (optional)
⚠️ Optional means you can use other option if you would like to, Example Lab hint-ui
Can be replaced with zf-missionfollowups
Supported
QBCore and QBOX CORE
ox_target , QB-target and Devyn Interract (https://github.com/darktrovx/interact)
zf-missionfollowups
Lab hint-ui
Kevin Dialogue
Configuration
```lua
Config = {}
Config.Debug = false --- set it to true if you would like to see the debug messages in the console and debug for zones (use only for development)
Config.ScrapMan = 'a_m_m_malibu_01' --- this is the ped model that will be used for the scrap man job you can change it to any ped model you like.
Config.ScrapManLocation = vector4(-470.56, -1718.35, 18.69, 276.24) --- this is the location where the scrap man is spawned you can change it to any location you like.
Config.waitformissiontime = math.random(2, 6) --- this is the time in minutes that the player has to wait him to get a mission after he Ques for a mission.
Config.MissionUI = 'zf-missionfollowups' --- set it to 'hintlab' if you would like to use lab-HintUI for the mission UI or set it to zf-missionfollowups if you would like to use zf-missionfollowups for the mission UI.
Config.onlynight = true --- set it to true if you would like the scrapman to only operate at night only. from 10pm to 4am. gta time.
Config.Menu = 'kevin' --- set it to 'ox' if you would like to use ox_lib menu to interact with the ped or set it to kevin to use kevin dialog for ped interaction.
Config.Target = 'devyn' --- ox for ox_target , qb for qb-target , devyn for devyn interact.
Config.BlackListedJobs = { --- this is the list of jobs that are blacklisted from the mission so if the player is in any of these jobs he will not get the mission.
'police',
'ambulance',
--- Add more jobs here as you like
}
Config.CarslistConfig = { --- this is the list of all the cars that can be used for the mission
['starter'] = {
cars = {
"Asbo",
"Asea",
"Banshee",
"Bfinjection",
"Blade",
--- Add more cars here as you like
},
payout = 3000, -- this is the payout for the starter cars when the player delivers the car to the scrap man (can also use math.random(2000, 4000) to get a random payout between 2000 and 4000)
payoutitem = 'black_money', -- this is the item that will be given to the player as the payout for the car delivery (can be any item from your item list or can be cash for cash)
repreward = 2, -- this is the rep reward for the starter cars when the player delivers the car to the scrap man can also use math.random(1, 3) to get a random rep reward between 1 and 3
reprequired = 0 -- this is the rep required for the starter cars to be used in the mission so if the player rep is below 20 they will get the starter cars in the mission.
},
['skilled'] = {
cars = {
"Buffalo4",
"Carbonizzare",
"Cheetah2",
"Comet2",
"Driftzr350",
--- Add more cars here as you like
},
payout = math.random(4500, 7000), -- this is the payout for the skilled cars when the player delivers the car to the scrap man (can also use math.random(4000, 6000) to get a random payout between 4000 and 6000)
repreward = 5, -- this is the rep reward for the skilled cars when the player delivers the car to the scrap man can also use math.random(3, 7) to get a random rep reward between 3 and 7
payoutitem = 'black_money', -- this is the item that will be given to the player as the payout for the car delivery (can be any item from your item list or can be cash for cash)
reprequired = 20 -- this is the rep required for the skilled cars to be requested from the player in the mission so if the player rep is 20 or above they will get the skilled cars in the mission
},
['experienced'] = {
cars = {
"Comet6",
"Coquette4",
"Cypher",
"Deity",
"Dominator9",
--- Add more cars here as you like
},
payout = 10000, -- this is the payout for the experienced cars when the player delivers the car to the scrap man (can also use math.random(8000, 12000) to get a random payout between 8000 and 12000)
payoutitem = 'cash', -- this is the item that will be given to the player as the payout for the car delivery (can be any item from your item list or can be cash for cash)
repreward = 10, -- this is the rep reward for the experienced cars when the player delivers the car to the scrap man can also use math.random(8, 12) to get a random rep reward between 8 and 12
reprequired = 60 -- this is the rep required for the experienced cars to be requested from the player in the mission so if the player rep is 60 or above they will get the experienced cars in the mission
},
['pro'] = {
cars = {
"Openwheel2",
"Panthere",
"Paragon",
"Pfister811",
"Primo",
--- Add more cars here as you like
},
payout = 20000, -- this is the payout for the experienced cars when the player delivers the car to the scrap man (can also use math.random(8000, 12000) to get a random payout between 8000 and 12000)
payoutitem = 'cash', -- this is the item that will be given to the player as the payout for the car delivery (can be any item from your item list or can be cash for cash)
repreward = 15, -- this is the rep reward for the experienced cars when the player delivers the car to the scrap man can also use math.random(8, 12) to get a random rep reward between 8 and 12
reprequired = 80 -- this is the rep required for the experienced cars to be requested from the player in the mission so if the player rep is 80 or above they will get the experienced cars in the mission
},
--[[ ['experienced'] = { ---- this is an example of how you can add more levels to the mission you can add as many levels as you like just make sure to follow the same formatting.
cars = {
"R300",
"Raiden",
"Raiden",
"Ruston",
"Sc1",
--- Add more cars here as you like
},
payout = 50000, -- this is the payout for the experienced cars when the player delivers the car to the scrap man (can also use math.random(8000, 12000) to get a random payout between 8000 and 12000)
payoutitem = 'cash', -- this is the item that will be given to the player as the payout for the car delivery (can be any item from your item list or can be cash for cash)
repreward = 30, -- this is the rep reward for the experienced cars when the player delivers the car to the scrap man
reprequired = 94 -- this is the rep required for the experienced cars to be requested from the player in the mission so if the player rep is 94 or above they will get the experienced cars in the mission
} ]]
}
Config.DeliverLocations = { --- this is the list of all the deliver positions where the player can deliver the car to the scrap (they will get a random location from the list)
["1"] = {
coords = vector3(-557.61, -1799.61, 21.97),
},
["2"] = {
coords = vector3(-1154.8, -2040.94, 12.56),
},
["3"] = {
coords = vector3(-2975.27, 79.55, 10.86),
},
["4"] = {
coords = vector3(-3252.97, 987.37, 11.83),
},
["5"] = {
coords = vector3(1168.64, -2975.62, 5.26),
},
["6"] = {
coords = vector3(-560.56, -2828.24, 5.36),
},
["7"] = {
coords = vector3(-203.87, 6264.16, 30.85),
},
["8"] = {
coords = vector3(2134.23, 4777.11, 40.33),
},
}
```
Last updated