Native referenceFiveM

0x51F30DB60626A20E

0x51F30DB60626A20E VEHICLE
FUNCTION SIGNATURE
BOOL 0x51F30DB60626A20E(Vehicle vehicle, float x, float y, float z, float rotX, float rotY, float rotZ, int p7, Any p8);
Property Value
Native Name 0x51F30DB60626A20E
Hash 0x51F30DB60626A20E
Return Type BOOL
Parameters vehicle (Vehicle), x (float), y (float), z (float), rotX (float), rotY (float), rotZ (float), p7 (int), p8 (Any)

Description: Usex in decompiled scripts in combination with _GET_VEHICLE_SUSPENSION_BOUNDS.

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))
{
    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))
    {
        uParam0->f_12.f_3 = { uParam0->f_6 };
        uParam0->f_12 = { uParam0->f_9 };
    }
}

Parameters

  • vehicle (Vehicle) — the target vehicle
  • x (float) — vehicle location
  • y (float) — vehicle location
  • z (float) — vehicle location
  • rotX (float) — some kind of vehicle rotation value
  • rotY (float) — some kind of vehicle rotation value
  • rotZ (float) — some kind of vehicle rotation value
  • p7 (int) — usually 2
  • p8 (Any) — usually 1
Back to VEHICLE