Перейти до основного вмісту

IsPlayerInModShop

попередження

Цей елемент (функція) додано у версії omp v1.1.0.2612, і в попередніх версіях він не працюватиме!

Description​

Check if the player is in the mod shop.

Parameters​

NameDescription
playeridThe 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.");
}

The following functions might be useful, as they're related to this callback in one way or another.

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.