Vehicle::setDoorsLockedForAllPlayers

From RAGE Multiplayer Wiki
Revision as of 09:49, 19 July 2019 by Sa1ln (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

vehicle.setDoorsLockedForAllPlayers(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

//Locks vehicle for all client-sided:
vehicle.setDoorsLockedForAllPlayers(true);

See also