The Lab
BOUNTY native

BOUNTY_GET_BOUNTY_ON_PLAYER

returns BOOL2 paramsbuild 1207

Fills bountyData with the bounty information for the player identified by gamerHandle and returns true on success.

Signature

C
BOOL BOUNTY_GET_BOUNTY_ON_PLAYER(Any* gamerHandle, Any* bountyData); // 0x4EF23E04A0C8FF51 b1207

Parameters

#NameType
1gamerHandleAny* (out pointer)
2bountyDataAny* (out pointer)

Facts

Facts about BOUNTY_GET_BOUNTY_ON_PLAYER
Name
BOUNTY_GET_BOUNTY_ON_PLAYER
Hash
0x4EF23E04A0C8FF51
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, gamerHandle, bountyData = Citizen.InvokeNative(0x4EF23E04A0C8FF51, -- BOUNTY_GET_BOUNTY_ON_PLAYER
  Citizen.PointerValueInt(), -- Any* gamerHandle
  Citizen.PointerValueInt(), -- Any* bountyData
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, gamerHandle, bountyData] = Citizen.invokeNative("0x4EF23E04A0C8FF51", // BOUNTY_GET_BOUNTY_ON_PLAYER
  Citizen.pointerValueInt(), // Any* gamerHandle
  Citizen.pointerValueInt(), // Any* bountyData
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var gamerHandleArg = new OutputArgument();
var bountyDataArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x4EF23E04A0C8FF51, // BOUNTY_GET_BOUNTY_ON_PLAYER
  gamerHandleArg, // Any* gamerHandle
  bountyDataArg // Any* bountyData
);
int gamerHandle = gamerHandleArg.GetResult<int>();
int bountyData = bountyDataArg.GetResult<int>();
All BOUNTY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.