Advertisement
Guest User

Car dealer

a guest
Oct 20th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. /*
  2. Only change stuff in here!
  3. */
  4. NPCSHOP = NPCSHOP or {}
  5. NPCSHOP.CarSpawn = {}
  6. NPCSHOP.NPCSpawn = {}
  7.  
  8. /*
  9. Edit stuff below this line
  10. **************************
  11. */
  12. // Model of the NPC, can be changed to whatever you want, as long as it follows this path of models/<modelname>.mdl
  13. NPCSHOP.NPCModel = "models/player/lordvipes/rerc_hunk/hunk_cvp.mdl"
  14.  
  15. //Position of the NPC, in YOUR console, type getpos to get positioning co-ordinates
  16.  
  17.  
  18. npocpos = Vector(-1846.543457, -1578.550903, -109.881966)
  19. npcang = Angle(0, 0, 0)
  20.  
  21.  
  22. //Position for the carspawn
  23.  
  24. NPCSHOP.CarSpawn["rp_downtown_v4c_v2"] = {
  25. {
  26. pos = Vector(-1638.195923, -1587.120972, -76.862396),
  27. ang = Angle(0, 90, 0)
  28. },
  29. }
  30.  
  31.  
  32. //Which ULX usergroups are considered "Donator"
  33. NPCSHOP.UserGroups = {"donator", "admin", "superadmin"}
  34.  
  35.  
  36.  
  37. /*=-=-=-=-=-=-=-=-=-=-==--=-=-=-=-=-=HOW TO ADD VEHICLES=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  38. Add vehicles here.
  39.  
  40. 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.
  41. 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
  42. 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
  43. team by typing "lua_run_cl print(LocalPlayer():Team())"
  44. If you add or remove darkrp teams, this process (in some cases) have to be done again!
  45.  
  46. NPCSHOP.AddVehicle(name, class, model, price, jobrestriction, donatoronly)
  47. name: Name of the vehicle in the npcshop menu
  48. class: Vehicle-class of the vehicle. Use "rp_getvehicles" to find these.
  49. model: Model which will appear in the npcshop menu
  50. price: How much it costs
  51. jobrestriction: What jobs will be able to buy this (type nil if its available to all jobs)
  52. donatoronly: Is this vehicle only available for donator's? true/false
  53. Display name > Class (rp_getvehicles in console) > Model directory > Price > Jobs > Donator/Not Donator - False = Not Donator, True = Donator
  54. */
  55. NPCSHOP.AddVehicle("Jeep", "Jeep", "models/buggy.mdl", 50000, nil, false )
  56. NPCSHOP.AddVehicle("Airboat", "Airboat", "models/airboat.mdl", 100000, nil, false )
  57. NPCSHOP.AddVehicle("Adder", "addergtav", "models/tdmcars/gtav/adder.mdl", 20000, nil, false )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement