Game code
BUILTIN::START_NEW_SCRIPT_WITH_NAME_HASH
0x5ACCC56D14E3983C ·RVA 0x03DDF420
Signature
int START_NEW_SCRIPT_WITH_NAME_HASH(
int p0,
Hash64 scriptHash,
int stackSize,
Any p3
);
Parameters 4
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | int | p0 |
– |
| 1 | Hash64 | scriptHash |
RDR3 takes a Hash; GTA VI passes a 64-bit hash (the game reads 64 bits, and the scripts pass a value, not an address). |
| 2 | int | stackSize |
– |
| 3 | Any | p3 |
the game doesn't read it. |
Returns
int
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p0 is not in RDR3's signature; the game reads it as a 32-bit integer.
- p3 is not in RDR3's signature; the game reads it as nothing (it is ignored), and the game doesn't read it.
- This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.
Call it
// BUILTIN::START_NEW_SCRIPT_WITH_NAME_HASH
auto result = invoke<int>(0x5ACCC56D14E3983C, p0, scriptHash, stackSize, p3);// BUILTIN::START_NEW_SCRIPT_WITH_NAME_HASH
int result = Function.Call<int>((Hash)0x5ACCC56D14E3983C, p0, scriptHash, stackSize, p3);-- BUILTIN::START_NEW_SCRIPT_WITH_NAME_HASH
local result = Citizen.InvokeNative(0x5ACCC56D14E3983C, p0, scriptHash, stackSize, p3)// BUILTIN::START_NEW_SCRIPT_WITH_NAME_HASH
const result = Citizen.invokeNative("0x5ACCC56D14E3983C", p0, scriptHash, stackSize, p3);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.