Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local items = {}
  2.  
  3. --patente
  4. items["patentedig"] = {"Patente","Usala per ottenere la patente firmata.",function(args)
  5. local choices = {}
  6. local idname = args[1]
  7.  
  8. choices["Firma"] = {function(player,choice,mod) -- bind the money
  9. local user_id = vRP.getUserId(player)
  10. if user_id ~= nil then
  11. if vRP.tryGetInventoryItem(user_id, idname, 1, true) then
  12. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"BUSINESS LIFE",false,"Firmando..."})
  13. Wait(3000)
  14. vRP.defInventoryItem("patentef","Patente di ["..userid.."]","Patente A",nil,0)
  15. vRP.giveInventoryItem(user_id, "patentef", 10, true)
  16. vRP.closeMenu(player)
  17. end
  18. end
  19. end}
  20.  
  21. return choices
  22. end,0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement