BOUNTY_GET_WANTED_POSTER_SLOT
Hash
0xB395A44A0C7CA615Runtime name
BountyGetWantedPosterSlotNamespaceBOUNTY
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL BOUNTY_GET_WANTED_POSTER_SLOT(Hash p0, Hash p1, Any* p2);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Hash | — |
p1 | Hash | — |
p2 | Any* | — |
Returns BOOL
Usage
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#
const [retval, p2] = BountyGetWantedPosterSlot(p0, p1, p2);
// by hash
const [retval, p2] = Citizen.invokeNative('0xB395A44A0C7CA615', p0, p1, Citizen.pointerValueIntInitialized(p2), Citizen.returnResultAnyway());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.InvokeNativeneeds the number — passjoaat("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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.