RedM Natives

_0x6BED40493A1AFDB8

Hash0x6BED40493A1AFDB8
Runtime nameN_0x6bed40493a1afdb8
NamespaceMISC
SideClient
NameHash only
Docs
Since build1207

Signature

void _0x6BED40493A1AFDB8(Any* p0, float p1);

Parameters

NameTypeDescription
p0Any*—
p1float—

Returns void

Usage

Lua
local p0 = N_0x6bed40493a1afdb8(p1)

-- always works, by hash
local p0 = Citizen.InvokeNative(0x6BED40493A1AFDB8, Citizen.PointerValueInt(), p1)
JavaScript and C#
JavaScript
const p0 = N_0x6bed40493a1afdb8(p1);

// by hash
const p0 = Citizen.invokeNative('0x6BED40493A1AFDB8', Citizen.pointerValueInt(), p1 + 0.0000001);
C#
var p0 = new OutputArgument();
Function.Call((Hash)0x6BED40493A1AFDB8, p0, p1);
// p0.GetResult<int>()
  • 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.
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • This native has no known name, so the runtime exposes it only as N_0x6bed40493a1afdb8 (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.