RedM Natives

BOUNTY_GET_WANTED_POSTER_SLOT

Hash0xB395A44A0C7CA615
Runtime nameBountyGetWantedPosterSlot
NamespaceBOUNTY
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL BOUNTY_GET_WANTED_POSTER_SLOT(Hash p0, Hash p1, Any* p2);

Parameters

NameTypeDescription
p0Hash—
p1Hash—
p2Any*—

Returns BOOL

Usage

Lua
local retval, p2 = BountyGetWantedPosterSlot(p0, p1, p2)

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

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