Globals::invokeFloat: Difference between revisions
(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 |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
mp.game.invokeFloat( | mp.game.invokeFloat(hash, args); | ||
</pre> | </pre> | ||
== Required Arguments == | == Required Arguments == | ||
* | * '''hash: <span style="color:#008017>String</span>''' | ||
* | * '''args: <span style="color:#008017>Any</span>''' | ||
== Return Value == | == Return Value == | ||
* | * <b>Float</b> | ||
== Example == | == Example == | ||
Latest revision as of 08:16, 6 November 2019
Invokes a specified Native that returns a float value.
Syntax
mp.game.invokeFloat(hash, args);
Required Arguments
- hash: String
- args: Any
Return Value
- Float
Example
Client-Side
let phoneGestureAnimTime = mp.game.invokeFloat('0x47619ABE8B268C60', mp.players.local.handle);