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 |
||
| Line 10: | Line 10: | ||
== Required Arguments == | == Required Arguments == | ||
* | * <b>NativeHash</b>: String | ||
* | * <b>params</b>: any | ||
== Return Value == | == Return Value == | ||
* | * <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);