Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- items["contrattopatentea"] = {"Contratto P.A","Firma questo contratto per ottenere la patente A intestata alla tua persona.",function(args)
- local choices = {}
- local idname = args[1]
- local user_id = vRP.getUserId(player)
- local wb_choices = {}
- choices["Firma"] = {function(player,choice,mod) -- bind the money
- local user_id = vRP.getUserId(player)
- if user_id ~= nil then
- if vRP.tryGetInventoryItem(user_id,"penna",1,false) then
- if vRP.tryGetInventoryItem(user_id,"contrattopatentea",1,false) then
- vRPclient.playAnim(player,{true,{task="CODE_HUMAN_MEDIC_TIME_OF_DEATH"},true})
- SetTimeout(5000, function()
- vRPclient.stopAnim(player,{false})
- end)
- vRPclient.notify(player,{"~g~firmando..."})
- Citizen.Wait(4000)
- vRP.getUserIdentity(user_id,function(identity)
- if identity then
- vRP.defInventoryItem("Patente A (CF:"..user_id..")","Patente A (CF:"..user_id..")","Patente A di "..identity.firstname.. " "..identity.name.."",function() return wb_choices end,0)
- end
- end)
- vRP.giveInventoryItem(user_id, "Patente A (CF:"..user_id..")", 1, true)
- end
- else vRPclient.notify(player,{"~g~Ti manca una penna..."})
- end
- vRP.closeMenu(player)
- end
- end}
- return choices
- end,0.50}
- ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement