Globals::invokeFloat: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "__TOC__ Invokes a specified [https://cdn.rage.mp/public/natives/ Native] that returns a float value. == Syntax == <pre> mp.game.invokeFloat('NATIVE', params); </pre> == Re...")
 
No edit summary
Line 10: Line 10:
== Required Arguments ==
== Required Arguments ==


* **NativeHash**: String
* <b>NativeHash</b>: String
* **params**: any
* <b>params</b>: any


== Return Value ==
== Return Value ==
* **Float**
* <b>Float</b>


== Example ==
== Example ==

Revision as of 08:10, 6 November 2019

Invokes a specified Native that returns a float value.

Syntax

mp.game.invokeFloat('NATIVE', params);

Required Arguments

  • NativeHash: String
  • params: any

Return Value

  • Float

Example

Client-Side
let phoneGestureAnimTime = mp.game.invokeFloat('0x47619ABE8B268C60', mp.players.local.handle);

See also