Player::taskPutDirectlyIntoCover: Difference between revisions

From RAGE Multiplayer Wiki
 
Line 18: Line 18:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
var localPlayer = mp.players.local;
localPlayer.taskPutDirectlyIntoCover(localPlayer.position.x, localPlayer.position.y, localPlayer.position.z, 5000, false, 0, true, false, 1, false);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 15:21, 27 July 2018

Syntax

player.taskPutDirectlyIntoCover(x, y, z, timeout, p5, p6, p7, p8, p9, p10);

Required Arguments

  • x: float
  • y: float
  • z: float
  • timeout: time in milliseconds
  • p5: Boolean
  • p6: float
  • p7: Boolean
  • p8: Boolean
  • p9: number(needs to be checked but doesn't argue with a number.)
  • p10: Boolean

Return value

  • Undefined

Example

var localPlayer = mp.players.local;
localPlayer.taskPutDirectlyIntoCover(localPlayer.position.x, localPlayer.position.y, localPlayer.position.z, 5000, false, 0, true, false, 1, false);

See also