RedM Natives

_0x3F8387DB1B9F31B7

Used for HORSE_REVIVE

Hash0x3F8387DB1B9F31B7
Runtime nameN_0x3f8387db1b9f31b7
NamespaceTASK
SideClient
NameHash only
Docs
Since build1207

Signature

BOOL _0x3F8387DB1B9F31B7(Any* scriptStruct, BOOL p1);

Parameters

NameTypeDescription
scriptStructAny*—
p1BOOL—

Returns BOOL

Description

Used for HORSE_REVIVE

Usage

Lua
local retval, scriptStruct = N_0x3f8387db1b9f31b7(p1)

-- always works, by hash
local retval, scriptStruct = Citizen.InvokeNative(0x3F8387DB1B9F31B7, Citizen.PointerValueInt(), p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, scriptStruct] = N_0x3f8387db1b9f31b7(p1);

// by hash
const [retval, scriptStruct] = Citizen.invokeNative('0x3F8387DB1B9F31B7', Citizen.pointerValueInt(), p1, Citizen.returnResultAnyway());
C#
var scriptStruct = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x3F8387DB1B9F31B7, scriptStruct, p1);
// scriptStruct.GetResult<int>()
  • 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_0x3f8387db1b9f31b7 (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.