The Lab
BOUNTY native

BOUNTY_GET_LEGENDARY_TARGET

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Retrieves information about a legendary bounty target into p1 and returns true on success.

Signature

C
BOOL BOUNTY_GET_LEGENDARY_TARGET(Any p0, Any* p1); // 0x85E4D7B225A30ED1 b1207

Parameters

#NameType
1p0Any
2p1Any* (out pointer)

Facts

Facts about BOUNTY_GET_LEGENDARY_TARGET
Name
BOUNTY_GET_LEGENDARY_TARGET
Hash
0x85E4D7B225A30ED1
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, p1 = Citizen.InvokeNative(0x85E4D7B225A30ED1, -- BOUNTY_GET_LEGENDARY_TARGET
  0, -- Any p0
  Citizen.PointerValueInt(), -- Any* p1
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p1] = Citizen.invokeNative("0x85E4D7B225A30ED1", // BOUNTY_GET_LEGENDARY_TARGET
  0, // Any p0
  Citizen.pointerValueInt(), // Any* p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p1Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x85E4D7B225A30ED1, // BOUNTY_GET_LEGENDARY_TARGET
  0, // Any p0
  p1Arg // Any* p1
);
int p1 = p1Arg.GetResult<int>();
All BOUNTY natives

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