StopPlayerHoldingObject

From SA-MP Wiki

Jump to: navigation, search


Description:

Removes attached objects.


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


Image:32px-Circle-style-warning.png

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.

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.