_0x402E1A61D2587FCD
Only used in R* SP Script spd_agnesdown1
Hash
0x402E1A61D2587FCDRuntime name
N_0x402e1a61d2587fcdNamespaceGRAPHICS
SideClient
NameHash only
Docs
Since build1207
Signature
BOOL _0x402E1A61D2587FCD(Any p0, float x, float y, float z, float p4, float p5, float heading);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Any | — |
x | float | — |
y | float | — |
z | float | — |
p4 | float | — |
p5 | float | — |
heading | float | — |
Returns BOOL
Description
Only used in R* SP Script spd_agnesdown1
Usage
local retval = N_0x402e1a61d2587fcd(p0, x, y, z, p4, p5, heading)
-- always works, by hash
local retval = Citizen.InvokeNative(0x402E1A61D2587FCD, p0, x, y, z, p4, p5, heading, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = N_0x402e1a61d2587fcd(p0, x, y, z, p4, p5, heading);
// by hash
const retval = Citizen.invokeNative('0x402E1A61D2587FCD', p0, x + 0.0000001, y + 0.0000001, z + 0.0000001, p4 + 0.0000001, p5 + 0.0000001, heading + 0.0000001, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x402E1A61D2587FCD, p0, x, y, z, p4, p5, heading);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - This native has no known name, so the runtime exposes it only as
N_0x402e1a61d2587fcd(if present in the client snapshot).InvokeNativewith the hash always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.