StopPlayerHoldingObject
From SA-MP Wiki
Revision as of 14:52, 9 December 2016; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Description:
Removes attached objects.
(playerid)
playerid | ID of the player you want to remove the object from. |
Return Values:
1 on success, 0 on failure
Example Usage:
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid); return 1; }
[edit]
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
SetPlayerHoldingObject - Attaches an object to a bone.
IsPlayerHoldingObject - Check if there is an object attached to a bone.