IsPlayerHoldingObject

From SA-MP Wiki

Jump to: navigation, search


IsPlayerHoldingObject 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. Use IsPlayerAttachedObjectSlotUsed instead.


Description:

Check if the player is holding an object.


Parameters:
(playerid)
playeridID of the player


Return Values:

false if player is not holding an object, true if they are


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.
StopPlayerHoldingObject - Removes the attached object.

Personal tools
Navigation
Toolbox