Difference between revisions of "Globals::invokeVector3"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
m (Rootcause moved page Globals::invokeVector to Globals::invokeVector3)
m (Vector -> Vector3)
 
Line 5: Line 5:
 
== Syntax ==  
 
== Syntax ==  
 
<pre>
 
<pre>
mp.game.invokeVector(hash, args);
+
mp.game.invokeVector3(hash, args);
 
</pre>
 
</pre>
  
Line 20: Line 20:
 
{{ClientsideCode|
 
{{ClientsideCode|
 
<pre>
 
<pre>
let bonePosVector = mp.game.invokeVector('0x44A8FCB8ED227738', mp.players.local.handle, boneId);
+
let bonePosVector = mp.game.invokeVector3('0x44A8FCB8ED227738', mp.players.local.handle, boneId);
 
</pre>
 
</pre>
 
}}
 
}}

Latest revision as of 07:54, 21 March 2020

Invokes a specified Native that returns a Vector3 object.

Syntax

mp.game.invokeVector3(hash, args);

Required Arguments

  • hash: String
  • args: Any

Return Value

  • Vector3

Example

Client-Side
let bonePosVector = mp.game.invokeVector3('0x44A8FCB8ED227738', mp.players.local.handle, boneId);

See also