Game code
PED::IS_PED_IN_VEHICLE
0xD86446245C11B5F8 ·RVA 0x04BF5FA0
Signature
BOOL IS_PED_IN_VEHICLE(
Ped ped,
Vehicle vehicle,
BOOL atGetIn,
BOOL p3,
BOOL p4
);
The scripts pass 7 values to this native; the decoded signature lists 5 (arguments the game doesn't read are left out).
Parameters 5
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Vehicle | vehicle |
– |
| 2 | BOOL | atGetIn |
– |
| 3 | BOOL | p3 |
– |
| 4 | BOOL | p4 |
– |
Returns
BOOL
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 true/false value.
- p4 is not in RDR3's signature; the game reads it as a true/false value.
- 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
// PED::IS_PED_IN_VEHICLE
auto result = invoke<BOOL>(0xD86446245C11B5F8, ped, vehicle, atGetIn, p3, p4);// PED::IS_PED_IN_VEHICLE
bool result = Function.Call<bool>((Hash)0xD86446245C11B5F8, ped, vehicle, atGetIn, p3, p4);-- PED::IS_PED_IN_VEHICLE
local result = Citizen.InvokeNative(0xD86446245C11B5F8, ped, vehicle, atGetIn, p3, p4)// PED::IS_PED_IN_VEHICLE
const result = Citizen.invokeNative("0xD86446245C11B5F8", ped, vehicle, atGetIn, 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.