Advertisement
SlenderDaddy

Entities

Aug 5th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. DarkRP.createEntity("entity name", {
  2. ent = "entity type",
  3. model = "model",
  4. price = 1000,
  5. max = 2,
  6. cmd = "command",
  7.  
  8. Custom Checks
  9.  
  10. Job Only Entites -
  11. allowed = {TEAM_, TEAM_},
  12.  
  13. Donor Only Entites -
  14. customCheck = function(ply) return ply:GetUserGroup() == "donator" end,
  15. CustomCheckFailMsg = function(ply, entTable) return "You need to be a donator to buy this entity!" end,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement