Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. //MADE BY BLUE
  2.  
  3.  
  4. local ITEM = {};
  5.  
  6. ITEM.ID = 84;
  7. ITEM.Reference = "item_cash_creator";
  8.  
  9. ITEM.Name = "Cash Creator";
  10. ITEM.Description = "Makes some cash";
  11.  
  12. ITEM.Weight = 5;
  13. ITEM.Cost = 2000;
  14.  
  15. ITEM.MaxStack = 5;
  16.  
  17. ITEM.InventoryModel = "models/Items/car_battery01.mdl";
  18. ITEM.ModelCamPos = Vector(0, 0, 30);
  19. ITEM.ModelLookAt = Vector(0, 0, 0);
  20. ITEM.ModelFOV = 70;
  21. ITEM.WorldModel = "models/Items/car_battery01.mdl";
  22.  
  23. ITEM.RestrictedSelling = false; // Used for drugs and the like. So we can't sell it.
  24.  
  25. ITEM.EquipZone = nil;
  26. ITEM.PredictUseDrop = false; // If this isn't true, the server will tell the client when something happens to us based on the server's OnUse
  27.  
  28. if SERVER then
  29.  
  30. function ITEM.OnUse ( Player )
  31. local prop = Player:SpawnProp(ITEM);
  32.  
  33. if (!prop || !IsValid(prop)) then return false; end
  34.  
  35.  
  36. return true;
  37. end
  38.  
  39. function ITEM.OnDrop ( Player )
  40. return true;
  41. end
  42.  
  43. function ITEM.Equip ( Player )
  44.  
  45. end
  46.  
  47. function ITEM.Holster ( Player )
  48.  
  49. end
  50.  
  51. else
  52.  
  53. function ITEM.OnUse ( slotID )
  54. return false;
  55. end
  56.  
  57. function ITEM.OnDrop ( )
  58. return true;
  59. end
  60.  
  61. end
  62.  
  63. GM:RegisterItem(ITEM);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement