Skip to content

Commit

Permalink
Update majority of VEHICLE hashed natives
Browse files Browse the repository at this point in the history
  • Loading branch information
ook3D committed Nov 4, 2023
1 parent 41f7b79 commit 750107f
Show file tree
Hide file tree
Showing 203 changed files with 2,368 additions and 1,364 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xB264C4D2F2B0A78B
## ALLOW_AMBIENT_VEHICLES_TO_AVOID_ADVERSE_CONDITIONS

```c
// 0xB264C4D2F2B0A78B 0x45F72495
void _0xB264C4D2F2B0A78B(Vehicle vehicle);
void ALLOW_AMBIENT_VEHICLES_TO_AVOID_ADVERSE_CONDITIONS(Vehicle vehicle);
```
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x2310A8F9421EBF43
## ALLOW_TRAIN_TO_BE_REMOVED_BY_POPULATION

```c
// 0x2310A8F9421EBF43
void _0x2310A8F9421EBF43(Any p0);
void ALLOW_TRAIN_TO_BE_REMOVED_BY_POPULATION(Any p0);
```
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xF78F94D60248C737
## ARE_PLANE_CONTROL_PANELS_INTACT

```c
// 0xF78F94D60248C737 0x3B51B348
BOOL _0xF78F94D60248C737(Vehicle vehicle, BOOL p1);
BOOL ARE_PLANE_CONTROL_PANELS_INTACT(Vehicle vehicle, BOOL p1);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x2C1D8B3B19E517CC
## CAN_CARGOBOB_PICK_UP_ENTITY

```c
// 0x2C1D8B3B19E517CC
Any _0x2C1D8B3B19E517CC(Any p0, Any p1);
Any CAN_CARGOBOB_PICK_UP_ENTITY(Any p0, Any p1);
```
Expand Down
22 changes: 22 additions & 0 deletions VEHICLE/ClearVehicleGeneratorAreaOfInterest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: VEHICLE
---
## CLEAR_VEHICLE_GENERATOR_AREA_OF_INTEREST

```c
// 0x0A436B8643716D14 0x6C73E45A
void CLEAR_VEHICLE_GENERATOR_AREA_OF_INTEREST();
```

Script Usage:

// launcher_basejumpheli.ysc @ L917
void func_5()
{
if (iLocal_81 == 0)
{
VEHICLE::CLEAR_VEHICLE_GENERATOR_AREA_OF_INTEREST();
}
AUDIO::SET_AUDIO_FLAG("DisableFlightMusic", 0);
}

35 changes: 35 additions & 0 deletions VEHICLE/ClearVehiclePetroltankFireCulprit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
ns: VEHICLE
---
## CLEAR_VEHICLE_PETROLTANK_FIRE_CULPRIT

```c
// 0x4419966C9936071A
void CLEAR_VEHICLE_PETROLTANK_FIRE_CULPRIT(Vehicle vehicle);
```
```
Script Usage:

// fm_race_creator.ysc @ L212579
void func_1941(int iParam0)
{
if (ENTITY::DOES_ENTITY_EXIST(Global_2437549.f_594[iParam0]))
{
if (!ENTITY::IS_ENTITY_DEAD(Global_2437549.f_594[iParam0], 0))
{
if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Global_2437549.f_594[iParam0]))
{
if (VEHICLE::_0x5BA68A0840D546AC(Global_2437549.f_594[iParam0], Global_2437549.f_593))
{
VEHICLE::_0x4419966C9936071A(Global_2437549.f_594[iParam0]);
}
}
}
}
}
```
## Parameters
* **vehicle**:
11 changes: 11 additions & 0 deletions VEHICLE/DisableVehicleExplosionBreakOffParts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
ns: VEHICLE
---
## DISABLE_VEHICLE_EXPLOSION_BREAK_OFF_PARTS

```c
// 0xF25E02CB9C5818F8 0xF0E59BC1
void DISABLE_VEHICLE_EXPLOSION_BREAK_OFF_PARTS();
```


File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x99CAD8E7AFDB60FA
## FORCE_SUB_THROTTLE_FOR_TIME

```c
// 0x99CAD8E7AFDB60FA 0x1128A45B
void _0x99CAD8E7AFDB60FA(Vehicle vehicle, float p1, float p2);
void FORCE_SUB_THROTTLE_FOR_TIME(Vehicle vehicle, float p1, float p2);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xC67DB108A9ADE3BE
## FORCE_SUBMARINE_NEUTRAL_BUOYANCY

```c
// 0xC67DB108A9ADE3BE
void _0xC67DB108A9ADE3BE(Any p0, Any p1);
void FORCE_SUBMARINE_NEUTRAL_BUOYANCY(Any p0, Any p1);
```
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xA4822F1CF23F4810
## GENERATE_VEHICLE_CREATION_POS_FROM_PATHS

```c
// 0xA4822F1CF23F4810 0x34E02FCD
BOOL _0xA4822F1CF23F4810(Vector3* outVec, Vector3* p1, Vector3* outVec1, Any p3, Any p4, Any p5, Any p6, Any p7, Any p8);
BOOL GENERATE_VEHICLE_CREATION_POS_FROM_PATHS(Vector3* outVec, Vector3* p1, Vector3* outVec1, Any p3, Any p4, Any p5, Any p6, Any p7, Any p8);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x51F30DB60626A20E
## GET_CAN_VEHICLE_BE_PLACED_HERE

```c
// 0x51F30DB60626A20E
BOOL _0x51F30DB60626A20E(Vehicle vehicle, float x, float y, float z, float rotX, float rotY, float rotZ, int p7, Any p8);
BOOL GET_CAN_VEHICLE_BE_PLACED_HERE(Vehicle vehicle, float x, float y, float z, float rotX, float rotY, float rotZ, int p7, Any p8);
```
Usex in decompiled scripts in combination with [`_GET_VEHICLE_SUSPENSION_BOUNDS`](#_0xDF7E3EEB29642C38).
Expand All @@ -14,13 +14,13 @@ NativeDB Introduced: v1180
```
// Example from fm_bj_race_controller.c
if (!VEHICLE::_0x51F30DB60626A20E(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1) && !func_282(uParam0->f_6))
if (!VEHICLE::GET_CAN_VEHICLE_BE_PLACED_HERE(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1) && !func_282(uParam0->f_6))
{
VEHICLE::_GET_VEHICLE_SUSPENSION_BOUNDS(*uParam0, &vVar15, &uVar16);
VEHICLE::_GET_VEHICLE_SUSPENSION_BOUNDS(uParam0->f_26, &vVar17, &uVar18);
fVar19 = SYSTEM::VDIST2(0f, 0f, vVar15.z, 0f, 0f, vVar17.z);
uParam0->f_12.f_3.f_2 = (uParam0->f_12.f_3.f_2 + fVar19);
if (!VEHICLE::_0x51F30DB60626A20E(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1))
if (!VEHICLE::GET_CAN_VEHICLE_BE_PLACED_HERE(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1))
{
uParam0->f_12.f_3 = { uParam0->f_6 };
uParam0->f_12 = { uParam0->f_9 };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xE8718FAF591FD224
## GET_HAS_VEHICLE_BEEN_HIT_BY_SHUNT

```c
// 0xE8718FAF591FD224
BOOL _0xE8718FAF591FD224(Vehicle vehicle);
BOOL GET_HAS_VEHICLE_BEEN_HIT_BY_SHUNT(Vehicle vehicle);
```
```
Expand Down
15 changes: 15 additions & 0 deletions VEHICLE/GetInVehicleClipsetHashForSeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
ns: VEHICLE
---
## GET_IN_VEHICLE_CLIPSET_HASH_FOR_SEAT

```c
// 0xA01BC64DD4BFBBAC 0x5ED1EECC
Hash GET_IN_VEHICLE_CLIPSET_HASH_FOR_SEAT(Vehicle vehicle, int seatIndex);
```
## Parameters
* **vehicle**:
* **seatIndex**:
## Return value
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
ns: VEHICLE
---
## _0xBA91D045575699AD
## GET_IS_BOAT_CAPSIZED


```c
// 0xBA91D045575699AD
BOOL _0xBA91D045575699AD(Vehicle vehicle);
BOOL GET_IS_BOAT_CAPSIZED(Vehicle vehicle);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0xEEBFC7A7EFDC35B4
## GET_VEHICLE_COLOURS_WHICH_CAN_BE_SET

```c
// 0xEEBFC7A7EFDC35B4 0x749DEEA2
int _0xEEBFC7A7EFDC35B4(Vehicle vehicle);
int GET_VEHICLE_COLOURS_WHICH_CAN_BE_SET(Vehicle vehicle);
```
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x6EAAEFC76ACC311F
## GET_VEHICLE_HOMING_LOCKEDONTO_STATE

```c
// 0x6EAAEFC76ACC311F
Any _0x6EAAEFC76ACC311F(Any p0);
int GET_VEHICLE_HOMING_LOCKEDONTO_STATE(Any p0);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
ns: VEHICLE
---
## _0x8533CAFDE1F0F336
## GET_VEHICLE_IS_DUMMY

```c
// 0x8533CAFDE1F0F336
Any _0x8533CAFDE1F0F336(Any p0);
Any GET_VEHICLE_IS_DUMMY(Any p0);
```
Expand Down
35 changes: 35 additions & 0 deletions VEHICLE/HasVehiclePetroltankSetOnFireByEntity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
ns: VEHICLE
---
## HAS_VEHICLE_PETROLTANK_SET_ON_FIRE_BY_ENTITY

```c
// 0x5BA68A0840D546AC
Any HAS_VEHICLE_PETROLTANK_SET_ON_FIRE_BY_ENTITY(Any p0, Any p1);
```
Script Usage:
// fm_race_creator.ysc @ L212579
void func_1941(int iParam0)
{
if (ENTITY::DOES_ENTITY_EXIST(Global_2437549.f_594[iParam0]))
{
if (!ENTITY::IS_ENTITY_DEAD(Global_2437549.f_594[iParam0], 0))
{
if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Global_2437549.f_594[iParam0]))
{
if (VEHICLE::HAS_VEHICLE_PETROLTANK_SET_ON_FIRE_BY_ENTITY(Global_2437549.f_594[iParam0], Global_2437549.f_593))
{
VEHICLE::_0x4419966C9936071A(Global_2437549.f_594[iParam0]);
}
}
}
}
}
## Parameters
* **p0**:
* **p1**:
## Return value
47 changes: 47 additions & 0 deletions VEHICLE/LockDoorsWhenNoLongerNeeded.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
ns: VEHICLE
---
## LOCK_DOORS_WHEN_NO_LONGER_NEEDED

```c
// 0xCFD778E7904C255E 0x3FBE904F
void LOCK_DOORS_WHEN_NO_LONGER_NEEDED(Vehicle vehicle);
```
```
script usage:

// am_mp_vehicle_reward.ysc @ L290
void func_8()
{
int iVar0;

if (Local_96.f_8 != -1)
{
if (func_12())
{
if (((ENTITY::DOES_ENTITY_EXIST(Local_96.f_11[Local_96.f_8]) && (!ENTITY::IS_ENTITY_DEAD(Local_96.f_11[Local_96.f_8], 0) || ENTITY::IS_ENTITY_IN_WATER(Local_96.f_11[Local_96.f_8]))) && func_10(Local_96.f_11[Local_96.f_8], 1, 0, 0, 0, 0, 1, 0, 1)) && !PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), Local_96.f_11[Local_96.f_8], 0))
{
iVar0 = Local_96.f_11[Local_96.f_8];
if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iVar0))
{
if (func_9(iVar0, &(Local_96.f_9)))
{
if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, 0))
{
VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(iVar0, 1);
VEHICLE::LOCK_DOORS_WHEN_NO_LONGER_NEEDED(iVar0);
}
NETWORK::NETWORK_FADE_OUT_ENTITY(iVar0, 0, 1);
VEHICLE::DELETE_VEHICLE(&iVar0);
}
}
}
}
}
}
```
## Parameters
* **vehicle**:
17 changes: 0 additions & 17 deletions VEHICLE/N_0x0205f5365292d2eb.md

This file was deleted.

Loading

0 comments on commit 750107f

Please sign in to comment.