Ped::setPedDensityMultiplierThisFrame: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
<br>� Usage<br><br>> Use this native inside a looped function.<br>> Values:<br>> 0.0 = no peds on streets<br>> 1.0 = normal peds on streets
<br>� Usage<br><br>> Use this native inside a looped function.<br>> Values:<br>> 0.0 = no peds on streets<br>> 1.0 = normal peds on streets
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ped.setPedDensityMultiplierThisFrame(multiplier);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ped.setPedDensityMultiplierThisFrame(multiplier);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''multiplier:''' float
*'''multiplier:''' float
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


� Usage

> Use this native inside a looped function.
> Values:
> 0.0 = no peds on streets
> 1.0 = normal peds on streets

Syntax

mp.game.ped.setPedDensityMultiplierThisFrame(multiplier);

Required Arguments

  • multiplier: float

Return value

  • Undefined

Example

// todo

See also