RedM Natives

BOUNTY_GET_LEGENDARY_TARGET

Hash0x85E4D7B225A30ED1
Runtime nameBountyGetLegendaryTarget
NamespaceBOUNTY
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL BOUNTY_GET_LEGENDARY_TARGET(Any p0, Any* p1);

Parameters

NameTypeDescription
p0Any—
p1Any*—

Returns BOOL

Usage

Lua
local retval, p1 = BountyGetLegendaryTarget(p0, p1)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0x85E4D7B225A30ED1, p0, Citizen.PointerValueIntInitialized(p1), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p1] = BountyGetLegendaryTarget(p0, p1);

// by hash
const [retval, p1] = Citizen.invokeNative('0x85E4D7B225A30ED1', p0, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway());
C#
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x85E4D7B225A30ED1, p0, 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.

Sources

alloc8or RDR3 NativeDB

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