warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
HideObjectForPlayer
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Hide an object for a player.
Parameters
Name | Description |
---|---|
playerid | The ID of the player. |
objectid | The ID of the object to hide for player. |
Returns
true
- The function was executed successfully.
false
- The function failed to execute. The playerid or objectid specified does not exist.
Examples
new gObject;
public OnGameModeInit()
{
gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000);
return 1;
}
public OnPlayerConnect(playerid)
{
HideObjectForPlayer(playerid, gObject);
return 1;
}
Related Functions
- ShowObjectForPlayer: Show an object for a player.
- IsObjectHiddenForPlayer: Checks if an object is hidden for a player.
- CreateObject: Create an object.