Player::isTryingToEnterALockedVehicle: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
{{ClientsideJsFunction}}
{{JSContainer|
===Return value===
*''{{RageType|Boolean}}''


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.isTryingToEnterALockedVehicle();</syntaxhighlight>
<syntaxhighlight lang="javascript">
=== Required Arguments ===
mp.players.local.isTryingToEnterALockedVehicle();
===Return value===
</syntaxhighlight>
*'''Boolean'''
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
if (mp.players.local.isTryingToEnterALockedVehicle())
mp.console.logInfo(`${mp.players.local.name} is trying to enter a locked vehicle`);
}
</syntaxhighlight>
</syntaxhighlight>
==See also==
 
}}
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:30, 28 April 2024

Client-Side
Function

 JavaScript



JavaScript Syntax

Return value

  • Boolean

Syntax

mp.players.local.isTryingToEnterALockedVehicle();

Example

if (mp.players.local.isTryingToEnterALockedVehicle())
	mp.console.logInfo(`${mp.players.local.name} is trying to enter a locked vehicle`);
}