The Lab
BOUNTY native

_BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX

returns BOOL3 paramsbuild 1232

Extended version of the pay-off request that also takes a currency through costType. Writes the request id to outRpcGuid and returns true if the request was sent.

Signature

C
BOOL _BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX(Any* outRpcGuid, Hash p1, Hash costType); // 0x587BCEC31D64F382 b1232

Parameters

#NameType
1outRpcGuidAny* (out pointer)
2p1Hash
3costTypeHash

Facts

Facts about _BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX
Name
_BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX
Hash
0x587BCEC31D64F382
Namespace
Returns
BOOL
Game build
1232

Examples

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

Lua
local result, outRpcGuid = Citizen.InvokeNative(0x587BCEC31D64F382, -- _BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX
  Citizen.PointerValueInt(), -- Any* outRpcGuid
  GetHashKey("name"), -- Hash p1
  GetHashKey("name"), -- Hash costType
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outRpcGuid] = Citizen.invokeNative("0x587BCEC31D64F382", // _BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX
  Citizen.pointerValueInt(), // Any* outRpcGuid
  GetHashKey("name"), // Hash p1
  GetHashKey("name"), // Hash costType
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outRpcGuidArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x587BCEC31D64F382, // _BOUNTY_REQUEST_PAY_OFF_BOUNTY_EX
  outRpcGuidArg, // Any* outRpcGuid
  (uint)API.GetHashKey("name"), // Hash p1
  (uint)API.GetHashKey("name") // Hash costType
);
int outRpcGuid = outRpcGuidArg.GetResult<int>();
All BOUNTY natives

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