Wiki
Clone wikiEFLC-MP LUA / onPlayerWeaponsArrived
Description
This function is triggered after the function requestPlayerWeapons is used.
Parameters
Int playerId
Return values
Example
#!lua function myPlayerWeaponsArrived(playerid) print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") weapons arrived") local gunTable = getPlayerWeapons(playerid) if(gunTable == nil) then return end for weapon, ammo in pairs(gunTable) do print(weapon .. ", " .. ammo) end end registerEvent("myPlayerWeaponsArrived", "onPlayerWeaponsArrived")
Updated