Player::getConfigFlag: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
p2 is always 1 in the scripts.<br><br>if (GET_Player_CONFIG_FLAG(ped, 78, 1))<br>= returns true if ped is aiming/shooting a gun
__TOC__
 
{{ClientsideJsFunction}}
 
{{JSContainer|
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.getConfigFlag(flagId, p2);</syntaxhighlight>
<pre>player.getConfigFlag(flagId, p2);</pre>
 
=== Required Arguments ===
=== Required Arguments ===
*'''flagId:''' int
*{{Required}}'''flagId:''' {{RageType|Int}} ([[Player_Config_Flags|Flag IDs]])
*'''p2:''' Boolean
*{{Required}}'''p2:''' {{RageType|Boolean}} (Always should be true)
 
===Return value===
===Return value===
*'''Boolean'''
*'''Boolean'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
<pre>
// todo
// todo
</syntaxhighlight>
</pre>
}}
}}
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 13:57, 9 December 2019

Client-Side
Function

 JavaScript



JavaScript Syntax

Syntax

player.getConfigFlag(flagId, p2);

Required Arguments

  • *flagId: Int (Flag IDs)
  • *p2: Boolean (Always should be true)

Return value

  • Boolean

Example

Client-Side
// todo


See also