Sjoerdva97

Add to s_item_system

Apr 30th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. local armor = {
  2.     [219]  = {49, "type2", "reaches for his armored vest and puts it over his head"},
  3.     [220]  = {74, "type3", "reaches for his armored vest and puts it over his head"},
  4.     [221]  = {100, "type4", "reaches for his armored vest and puts it over his head"},
  5. }
  6. -- Didn't make this local, since it is also required for the 'giveItem' function in s_item_management
  7.  
  8.  
  9. -- Add to useItem
  10.         elseif (armor[itemID]) then
  11.             local data = armor[itemID]
  12.             setPedArmor(source, data[1])
  13.             triggerEvent('sendAme', source, data[3]:gsub("#name",itemName) ..".")
  14.             takeItemFromSlot(source, itemSlot)
Advertisement
Add Comment
Please, Sign In to add comment