Jump to content
Sign in to follow this  
Fanny

vrpex Guardar armas por comando

Recommended Posts

Fanny    4
["/guardararmas"] = {
    action = function(player,choice)
        local user_id = vRP.getUserId(player)
        if vRP.hasPermission(user_id,"teste.fanny") then
            local weapons = vRPclient.replaceWeapons(player,{})
            for k,v in pairs(weapons) do
                vRP.giveInventoryItem(user_id,"wbody|"..k,1,true)
                if v.ammo > 0 then
                    vRP.giveInventoryItem(user_id,"wammo|"..k,v.ammo,true)
                end
            end
        else
            TriggerClientEvent('chatMessage',player,"ALERTA",{255,0,0},"Você não tem permissão para usar esse comando.")
        end
    end
}


Requer: vrp_cmds

Atenciosamente ♥

  • Curtir 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...