RedM Natives

_0x318F0F9A4426CFA2

Only used in R* SP Script av_amb_camp_robbery

Hash0x318F0F9A4426CFA2
Runtime nameN_0x318f0f9a4426cfa2
NamespaceLAW
SideClient
NameHash only
Docs
Since build1207

Signature

Any _0x318F0F9A4426CFA2(Ped ped, Any* p1);

Parameters

NameTypeDescription
pedPed—
p1Any*—

Returns Any

Description

Only used in R* SP Script av_amb_camp_robbery

Usage

Lua
local retval, p1 = N_0x318f0f9a4426cfa2(ped, p1)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0x318F0F9A4426CFA2, ped, Citizen.PointerValueIntInitialized(p1), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, p1] = N_0x318f0f9a4426cfa2(ped, p1);

// by hash
const [retval, p1] = Citizen.invokeNative('0x318F0F9A4426CFA2', ped, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var p1 = new OutputArgument();
int retval = Function.Call<int>((Hash)0x318F0F9A4426CFA2, ped, p1);
// p1.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • 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_0x318f0f9a4426cfa2 (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.