VEHICLE

GET_VEHICLE_HEALTH_PERCENTAGE

0xB8EF61207C2393A9 Jenkins: 0x196BA503

Signature

// VEHICLE
float GET_VEHICLE_HEALTH_PERCENTAGE(Vehicle vehicle, float maxEngineHealth, float maxPetrolTankHealth, float maxBodyHealth, float maxMainRotorHealth, float maxTailRotorHealth, float maxUnkHealth)

Parameters

Type Name
Vehicle vehicle
float maxEngineHealth
float maxPetrolTankHealth
float maxBodyHealth
float maxMainRotorHealth
float maxTailRotorHealth
float maxUnkHealth

Return type float

Build 323

Former names

  • _GET_VEHICLE_BODY_HEALTH_2

Documentation

0 min 100 max starts at 100 Seams to have health zones Front of vehicle when damaged goes from 100-50 and stops at 50. Rear can be damaged from 100-0 Only tested with two cars. any idea how this differs from the first one? -- May return the vehicle health on a scale of 0.0 - 100.0 (needs to be confirmed) example: v_F = ENTITY::GET_ENTITY_MODEL(v_3); if (((v_F == ${tanker}) || (v_F == ${armytanker})) || (v_F == ${tanker2})) { if (VEHICLE::_GET_VEHICLE_BODY_HEALTH_2(v_3) <= 1.0) { NETWORK::NETWORK_EXPLODE_VEHICLE(v_3, 1, 1, -1); } }

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.