Advertisement
Guest User

NPC Config

a guest
Sep 1st, 2014
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 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/Humans/Group02/Female_03.mdl"
  14.  
  15. //Position of the NPC, in YOUR console, type getpos to get positioning co-ordinates
  16.  
  17. npocpos = Vector(5094.956055, -3482.516602, 292.031250)
  18. npcang = Angle(8.140065, -90.498817, 0.000000)
  19.  
  20. //Position for the carspawn
  21.  
  22. NPCSHOP.CarSpawn["rp_evocity_v33x"] = {
  23.  
  24. pos = Vector(5198.711914, -5868.054199, 174.773758),
  25. ang = Angle(0, 90, 0)
  26. }
  27.  
  28.  
  29. //Which ULX usergroups are considered "Donator"
  30. NPCSHOP.UserGroups = {"donator", "admin", "superadmin", "VIP"}
  31.  
  32. /*=-=-=-=-=-=-=-=-=-=-==--=-=-=-=-=-=HOW TO ADD VEHICLES=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  33. Add vehicles here.
  34.  
  35. 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.
  36. 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
  37. 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
  38. team by typing "lua_run_cl print(LocalPlayer():Team())"
  39. If you add or remove darkrp teams, this process (in some cases) have to be done again!
  40.  
  41. NPCSHOP.AddVehicle(name, class, model, price, jobrestriction, donatoronly)
  42. name: Name of the vehicle in the npcshop menu
  43. class: Vehicle-class of the vehicle. Use "rp_getvehicles" to find these.
  44. model: Model which will appear in the npcshop menu
  45. price: How much it costs
  46. jobrestriction: What jobs will be able to buy this (type nil if its available to all jobs)
  47. donatoronly: Is this vehicle only available for donator's? true/false
  48. Display name > Class (rp_getvehicles in console) > Model directory > Price > Jobs > Donator/Not Donator - False = Not Donator, True = Donator
  49. */
  50. NPCSHOP.AddVehicle("Volkswagen Golf MKII", "golfmk2tdm", "models/tdmcars/golf_mk2.mdl", 7000, nil, false )
  51. NPCSHOP.AddVehicle("KIA Ceed", "ceedtdm", "models/tdmcars/kia_ceed.mdl", 32000, nil, false )
  52. NPCSHOP.AddVehicle("Ford Raptor SVT", "raptorsvttdm", "models/tdmcars/for_raptor.mdl", 35000, nil, false )
  53. NPCSHOP.AddVehicle("Audi TT 07", "auditttdm", "models/tdmcars/auditt.mdl", 40000, nil, false )
  54. NPCSHOP.AddVehicle("Dodge Charger SRT-8", "chargersrt8tdm", "models/tdmcars/chargersrt8.mdl", 56000, nil, false )
  55. NPCSHOP.AddVehicle("Ford Mustang GT", "mustanggttdm", "models/tdmcars/for_mustanggt.mdl", 88000, nil, false )
  56. NPCSHOP.AddVehicle("Ferrari F50", "f50tdm", "models/tdmcars/fer_f50.mdl", 150000, nil, false )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement