SetPlayerWeaponMode Client function
Jump to navigation
Jump to search
This function was added in version: 0.0.4 |
This function sets player's weapon mode.
Syntax
void setPlayerWeaponMode(int id, int wm);
Parameters
- id: id of the player who's weapon mode you want to set.
- wm: id of the weapon mode.
Example
local function onCommandHandler(cmd, params)
{
if(cmd == "wm")
{
setPlayerWeaponMode(0,1); // Set to NPC_WEAPON_FIST
}
}
addEventHandler("onCommand", onCommandHandler);