Guest User

Entities

a guest
Dec 30th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom entities
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom entities.
  6. This file should also contain entities from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
  9. Once you've done that, copy and paste the entity to this file and edit it.
  10.  
  11. The default entities can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
  16.  
  17. Add entities under the following line:
  18. ---------------------------------------------------------------------------]]
  19.  
  20. DarkRP.createEntity("Small Ammo Crate", {
  21. ent = "cw_ammo_crate_small",
  22. model = "models/items/ammocrates/crate40mm.mdl",
  23. price = 500,
  24. max = 2,
  25. cmd = "buyammo",
  26. category = "Ammo"
  27. })
  28.  
  29. DarkRP.createEntity("Instant Repair Kit", {
  30. ent = "vc_pickup_healthkit_100",
  31. model = "models/vcmod/vcmod_toolbox.mdl",
  32. price = 5000,
  33. max = 2,
  34. cmd = "buyrepairkit",
  35. allowed = {TEAM_MECHANIC}
  36. })
Advertisement
Add Comment
Please, Sign In to add comment