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.
IsPlayerInModShop
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Check if the player is in the mod shop.
Parameters
Name | Description |
---|---|
playerid | The ID of the player to check. |
Return Values
true - Player is in mod shop.
false - Player is not in mod shop.
Examples
if (IsPlayerInModShop(playerid))
{
SendClientMessage(playerid, 0xFFFF00FF, "You are in the mod shop.");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You are not in the mod shop.");
}
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- AddVehicleComponent: Add a component to a vehicle.
Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- OnVehicleMod: This callback is called when a vehicle is modded.
- OnVehicleRespray: This callback is called when a player exits a mod shop, even if the colors weren't changed.
- OnVehiclePaintjob: This callback is called when a player previews a vehicle paintjob inside a mod shop.
- OnEnterExitModShop: This callback is called when a player enters or exits a mod shop.