Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Only change stuff in here!
- */
- NPCSHOP = NPCSHOP or {}
- NPCSHOP.CarSpawn = {}
- NPCSHOP.NPCSpawn = {}
- /*
- Edit stuff below this line
- **************************
- */
- // Model of the NPC, can be changed to whatever you want, as long as it follows this path of models/<modelname>.mdl
- NPCSHOP.NPCModel = "models/Characters/hostage_03.mdl"
- //Position of the NPC, 27 -266.368805 -131.968750)
- npcang = Angle(4.092000 1.025591 0.000000)in YOUR console, type getpos to get positioning co-ordinates
- npocpos = Vector(-2426.3176
- //Position for the carspawn
- NPCSHOP.CarSpawn["rp_downtown_v4c_v2"] = {
- {
- pos = Vector(-2226.059326 -293.389832 -131.968750),
- ang = Angle(2.507989 -91.176323 0.000000)
- },
- }
- //Which ULX usergroups are considered "Donator"
- NPCSHOP.UserGroups = {"donator", "admin", "superadmin"}
- //What percent of the buy price will each car sell for. You will have to do the math. Ex: 100 = 100%, the sell price will be the same as the buy price.
- vehicleSellPricePercent = 50
- /*=-=-=-=-=-=-=-=-=-=-==--=-=-=-=-=-=HOW TO ADD VEHICLES=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Add vehicles here.
- The jobrestriction is abit wonky, in darkrp you can just do like {TEAM_POLICE, TEAM_CHIEF, TEAM_MAYOR} but it doesn't really work the same here.
- Jobrestriction is put with {1,2,3} where 1, 2 and 3 are the team numbers of those teams, in order to get the team numbers, just go ingame, open console
- using F11 and type "lua_run_cl print(TEAM_CITIZEN)" which will give you the team number for citizen. You can also get the teamnumber of your current
- team by typing "lua_run_cl print(LocalPlayer():Team())"
- If you add or remove darkrp teams, this process (in some cases) have to be done again!
- NPCSHOP.AddVehicle(name, class, model, price, jobrestriction, donatoronly)
- name: Name of the vehicle in the npcshop menu
- class: Vehicle-class of the vehicle. Use "rp_getvehicles" to find these.
- model: Model which will appear in the npcshop menu
- price: How much it costs
- jobrestriction: What jobs will be able to buy this (type nil if its available to all jobs)
- donatoronly: Is this vehicle only available for donator's? true/false
- Display name > Class (rp_getvehicles in console) > Model directory > Price > Jobs > Donator/Not Donator - False = Not Donator, True = Donator
- */
- NPCSHOP.AddVehicle("Porche", "porcycletdm", "models/tdmcars/por_tricycle.mdl", 10, nil, false )
- NPCSHOP.AddVehicle("Veyron", "veyrontdm", "models/tdmcars/bug_veyron.mdl", 500000, nil, false )
- NPCSHOP.AddVehicle("VeyronSS", "veyronsstdm", "models/tdmcars/bug_veyronss.mdl", 850000, nil, false )
- NPCSHOP.AddVehicle("Camaro69", "69camarotdm", "models/tdmcars/69camaro.mdl", 10, nil, false )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement