Vehicle::setVehicleModelIsSuppressed: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
seems to make the vehicle stop spawning naturally in traffic. Here's an essential example:<br><br>VEHICLE::SET_VEHICLE_MODEL_IS_SUPPRESSED(GAMEPLAY::GET_HASH_KEY('taco'), true);<br><br>god I hate taco vans<br><br>Confirmed to work? Needs to be looped? Can not get it to work.
seems to make the vehicle stop spawning naturally in traffic. Here's an essential example:<br><br>VEHICLE::SET_VEHICLE_MODEL_IS_SUPPRESSED(GAMEPLAY::GET_HASH_KEY('taco'), true);<br><br>god I hate taco vans<br><br>Confirmed to work? Needs to be looped? Can not get it to work.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setVehicleModelIsSuppressed(model, suppressed);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.setVehicleModelIsSuppressed(model, suppressed);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''model:''' Model hash or name
*'''model:''' Model hash or name
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:34, 6 May 2017

seems to make the vehicle stop spawning naturally in traffic. Here's an essential example:

VEHICLE::SET_VEHICLE_MODEL_IS_SUPPRESSED(GAMEPLAY::GET_HASH_KEY('taco'), true);

god I hate taco vans

Confirmed to work? Needs to be looped? Can not get it to work.

Syntax

mp.game.vehicle.setVehicleModelIsSuppressed(model, suppressed);

Required Arguments

  • model: Model hash or name
  • suppressed: Boolean

Return value

  • Undefined

Example

// todo

See also