RedM Natives

_0x402E1A61D2587FCD

Only used in R* SP Script spd_agnesdown1

Hash0x402E1A61D2587FCD
Runtime nameN_0x402e1a61d2587fcd
NamespaceGRAPHICS
SideClient
NameHash only
Docs
Since build1207

Signature

BOOL _0x402E1A61D2587FCD(Any p0, float x, float y, float z, float p4, float p5, float heading);

Parameters

NameTypeDescription
p0Any—
xfloat—
yfloat—
zfloat—
p4float—
p5float—
headingfloat—

Returns BOOL

Description

Only used in R* SP Script spd_agnesdown1

Usage

Lua
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#
JavaScript
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());
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to 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). InvokeNative with the hash always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.