Перейти к содержанию

Vehicle::setDoorsLockedForAllPlayers

Материал из RAGE MP Wiki Archive

After some analysis, I've decided that these are what the parameters are.

We can see this being used in R* scripts such as 'am_mp_property_int.ysc.c4':
l_11A1 = Player::GET_VEHICLE_Player_IS_IN(PLAYER::PLAYER_Player_ID(), 1);
...
VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(l_11A1, 1);

Syntax

<syntaxhighlight lang="javascript">vehicle.setDoorsLockedForAllPlayers(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> //Locks vehicle for all client-sided: vehicle.setDoorsLockedForAllPlayers(true); </syntaxhighlight>

See also