StopPlayerHoldingObject
From SA-MP Wiki
Removes attached objects.
Warning: This function was removed in SA-MP 0.3c. check RemovePlayerAttachedObject
(playerid)
| playerid | ID of the player you want to remove the object from. |
| Returns | 1 on success, 0 on failure |
Example
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid); return 1; }
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.
