StopPlayerHoldingObject

From SA-MP Wiki

Jump to: navigation, search


Removes attached objects.


StopPlayerHoldingObject was added in SA-MP 0.3x This function was added in SA-MP 0.3b and will not work in earlier versions!


Warning: This function was removed in SA-MP 0.3c. check RemovePlayerAttachedObject


Parameters:
(playerid)
playeridID of the player you want to remove the object from.
Returns1 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.

Personal tools