Vehicle::setDoorsLockedForAllPlayers: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
//Locks vehicle for all client-sided:
vehicle.setDoorsLockedForAllPlayers(true);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 09:49, 19 July 2019

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