Advertisement
Guest User

npc

a guest
Sep 2nd, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 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/Characters/hostage_03.mdl"
  14.  
  15. //Position of the NPC, in YOUR console, type getpos to get positioning co-ordinates
  16.  
  17. NPCSHOP.NPCSpawn["rp_uptown_v4_beta8"] = { //Put the actual map name in
  18. pos = Vector(-2054.378662, 185.523361, -131.968750),
  19. ang = Angle(-1.000071, -86.333008, 0.000000)
  20. }
  21.  
  22. //Position for the carspawn
  23.  
  24. NPCSHOP.CarSpawn["rp_uptown_v4_beta8"] = {
  25. {
  26. pos = Vector(-1926.446289, 285.149414, -86.307205),
  27. ang = Angle(3.640013, 178.186325, 0.000000)
  28. },
  29. }
  30.  
  31. //Which ULX usergroups are considered "VIP"
  32. NPCSHOP.UserGroups = {"donator", "admin", "superadmin"}
  33.  
  34. /*
  35. Add vehicles here.
  36.  
  37. 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.
  38. 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
  39. 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
  40. team by typing "lua_run_cl print(LocalPlayer():Team())"
  41. If you add or remove darkrp teams, this process (in some cases) have to be done again!
  42.  
  43. NPCSHOP.AddVehicle(name, class, model, price, jobrestriction, viponly)
  44. name: Name of the vehicle in the npcshop menu
  45. class: Vehicle-class of the vehicle. Use "rp_getvehicles" to find these.
  46. model: Model which will appear in the npcshop menu
  47. price: How much it costs
  48. jobrestriction: What jobs will be able to buy this (type nil if its available to all jobs)
  49. viponly: Is this vehicle only available for VIP's? true/false
  50. Display name > Class (rp_getvehicles in console) > Model directory > Price > Jobs > VIP/Not VIP - False = Not VIP, True = VIP
  51. */
  52. NPCSHOP.AddVehicle("Nissan 240SX", "240sx", "models/sentry/240sx.mdl", 35000, nil, false )
  53. NPCSHOP.AddVehicle("Lexus LF-A", "sgmlfa", "models/sentry/lfa.mdl", 40000, nil, false )
  54. NPCSHOP.AddVehicle("1970 Chevrolet El Camino SS 454", "elcamino", "models/sentry/elcamino.mdl", 35000, nil, false )
  55. NPCSHOP.AddVehicle("Ford Crown Victoria", "sgmcrownvic", "models/sentry/crownvic.mdl", 30000, nil, false )
  56. NPCSHOP.AddVehicle("Ford Crown Police Interceptor", "sgmcrownviccvpi", "models/sentry/crownviccvpi.mdl", 40000, nil, false )
  57. NPCSHOP.AddVehicle("2008 Saleen S331 Supercab", "supercab", "models/sentry/supercab.mdl", 35000, nil, false )
  58. NPCSHOP.AddVehicle("Chevrolet Corvette ZR1", "zr1", "models/sentry/zr1.mdl", 40000, nil, false )
  59. NPCSHOP.AddVehicle("2013 Ford Mustang", "boss302", "models/sentry/boss302.mdl", 45000, nil, false )
  60. NPCSHOP.AddVehicle("2006 Koenigsegg CCX", "ccx", "models/sentry/ccx.mdl", 50000, nil, true )
  61. NPCSHOP.AddVehicle("2011 McLaren MP-412C", "mp4-12c", "models/sentry/mp4-12c.mdl", 40000, nil, false )
  62. NPCSHOP.AddVehicle("Ferrari F1", "ferrarif1", "models/sentry/ferrarif1.mdl", 90000, nil, true )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement