StopPlayerHoldingObject
From SA-MP Wiki
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; }
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.