Game codeUnofficial name
ITEMDATABASE::_ITEMDATABASE_GET_ACQUIRE_COST
0x985DA88A988D57C3 ·RVA 0x03E8CFD0
Signature
BOOL _ITEMDATABASE_GET_ACQUIRE_COST(
Hash key,
int index,
Any* outData,
int p3,
int p4
);
Parameters 5
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Hash | key |
– |
| 1 | int | index |
– |
| 2 | Any* | outData |
– |
| 3 | int | p3 |
– |
| 4 | int | p4 |
– |
Returns
BOOL
the game returns one byte.
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p3 is not in RDR3's signature; the game reads it as a 32-bit integer.
- p4 is not in RDR3's signature; the game reads it as a 32-bit integer.
Call it
// ITEMDATABASE::_ITEMDATABASE_GET_ACQUIRE_COST
auto result = invoke<BOOL>(0x985DA88A988D57C3, key, index, &outData, p3, p4);// ITEMDATABASE::_ITEMDATABASE_GET_ACQUIRE_COST
bool result = Function.Call<bool>((Hash)0x985DA88A988D57C3, key, index, outData, p3, p4);-- ITEMDATABASE::_ITEMDATABASE_GET_ACQUIRE_COST
local result = Citizen.InvokeNative(0x985DA88A988D57C3, key, index, outData, p3, p4)// ITEMDATABASE::_ITEMDATABASE_GET_ACQUIRE_COST
const result = Citizen.invokeNative("0x985DA88A988D57C3", key, index, outData, p3, p4);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.