Wiki

Clone wiki

EFLC-MP LUA / givePlayerWeapon

Description

Gives the player a weapon

Parameters

Int playerid, Int weaponId, Int ammo
Int playerid: ID of the player

Int weaponId: Weapons list

Int ammo: Amount of ammo to give

Return values


Example

#!lua
--Gives the player a SMG with 500 bullets
givePlayerWeapon(playerid, 13, 500)

Updated