Ped::setScenarioPedsToBeReturnedByNextCommand: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Sets a value indicating whether scenario peds should be returned by the next call to a command that returns peds. Eg. GET_CLOSEST_PED.
Sets a value indicating whether scenario peds should be returned by the next call to a command that returns peds. Eg. GET_CLOSEST_PED.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ped.setScenarioPedsToBeReturnedByNextCommand(value);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ped.setScenarioPedsToBeReturnedByNextCommand(value);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''value:''' Boolean
*'''value:''' Boolean
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ped_function_c}}
{{Ped_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:29, 6 May 2017

Sets a value indicating whether scenario peds should be returned by the next call to a command that returns peds. Eg. GET_CLOSEST_PED.

Syntax

mp.game.ped.setScenarioPedsToBeReturnedByNextCommand(value);

Required Arguments

  • value: Boolean

Return value

  • Undefined

Example

// todo

See also