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.
IsValidPickup
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Checks if a pickup is valid.
Name | Description |
---|---|
pickupid | The ID of the pickup to check. |
Returns
This function returns true if the pickup is valid, or false if it is not.
Examples
new g_Pickup;
public OnGameModeInit()
{
g_Pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
if (IsValidPickup(g_Pickup))
{
// Do something
}
return 1;
}
Related Functions
- CreatePickup: Create a pickup.
- AddStaticPickup: Add a static pickup.
- DestroyPickup: Destroy a pickup.
- IsPickupStreamedIn: Checks if a pickup is streamed in for a specific player.
- IsPickupHiddenForPlayer: Checks if a pickup is hidden for a specific player.
- SetPickupPos: Sets the position of a pickup.
- GetPickupPos: Gets the coordinates of a pickup.
- SetPickupModel: Sets the model of a pickup.
- GetPickupModel: Gets the model ID of a pickup.
- SetPickupType: Sets the type of a pickup.
- GetPickupType: Gets the type of a pickup.
- SetPickupVirtualWorld: Sets the virtual world ID of a pickup.
- GetPickupVirtualWorld: Gets the virtual world ID of a pickup.
- ShowPickupForPlayer: Shows a pickup for a specific player.
- HidePickupForPlayer: Hides a pickup for a specific player.
- SetPickupForPlayer: Adjusts the pickup model, type, and position for a specific player.