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.
SetPlayerPickupModel
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Sets the model of a player-pickup.
Name | Description |
---|---|
playerid | The ID of the player. |
pickupid | The ID of the player-pickup. |
model | The model to set. |
bool:update = true | Update pickup for player. (true/false) |
Returns
This function always returns true.
Examples
new PlayerPickup[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
PlayerPickup[playerid] = CreatePlayerPickup(playerid, 1242, 2, 2010.0979, 1222.0642, 10.8206, -1);
SetPlayerPickupModel(playerid, PlayerPickup[playerid], 1210);
return 1;
}
Related Functions
- CreatePlayerPickup: Creates a pickup which will be visible to only one player.
- DestroyPlayerPickup: Destroy a player-pickup.
- IsValidPlayerPickup: Checks if a player-pickup is valid.
- IsPlayerPickupStreamedIn: Checks if a player-pickup is streamed in for the player.
- SetPlayerPickupPos: Sets the position of a player-pickup.
- GetPlayerPickupPos: Gets the coordinates of a player-pickup.
- GetPlayerPickupModel: Gets the model ID of a player-pickup.
- SetPlayerPickupType: Sets the type of a player-pickup.
- GetPlayerPickupType: Gets the type of a player-pickup.
- SetPlayerPickupVirtualWorld: Sets the virtual world ID of a player-pickup.
- GetPlayerPickupVirtualWorld: Gets the virtual world ID of a player-pickup.