RedM Natives

_0xCB8F4C9343EBE240

Only used in R* SP Scripts _GET_PLAYER_W* - _GET_RANDOM_*

Hash0xCB8F4C9343EBE240
Runtime nameN_0xcb8f4c9343ebe240
NamespacePED
SideClient
NameHash only
Docs
Since build1207

Signature

BOOL _0xCB8F4C9343EBE240(Ped ped, Hash eventType, Vector3* coords);

Parameters

NameTypeDescription
pedPed—
eventTypeHash—
coordsVector3*—

Returns BOOL

Description

Only used in R* SP Scripts
_GET_PLAYER_W* - _GET_RANDOM_*

Usage

Lua
local retval, coords = N_0xcb8f4c9343ebe240(ped, eventType, coords)

-- always works, by hash
local retval, coords = Citizen.InvokeNative(0xCB8F4C9343EBE240, ped, eventType, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, coords] = N_0xcb8f4c9343ebe240(ped, eventType, coords);

// by hash
const [retval, coords] = Citizen.invokeNative('0xCB8F4C9343EBE240', ped, eventType, Citizen.pointerValueVector(), Citizen.returnResultAnyway());
C#
var coords = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xCB8F4C9343EBE240, ped, eventType, coords);
// coords.GetResult<Vector3>()
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • This native has no known name, so the runtime exposes it only as N_0xcb8f4c9343ebe240 (if present in the client snapshot). InvokeNative with the hash always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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