RedM Natives

HAS_VEHICLE_BEEN_DAMAGED_BY_BULLETS

Hash0xB8AF3137
Runtime nameHasVehicleBeenDamagedByBullets
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL HAS_VEHICLE_BEEN_DAMAGED_BY_BULLETS(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The target vehicle.

Returns BOOL — Returns whether or not the target vehicle has been damaged by bullets.

Usage

Lua
local retval = HasVehicleBeenDamagedByBullets(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xb8af3137, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasVehicleBeenDamagedByBullets(vehicle);

// by hash
const retval = Citizen.invokeNative('0xb8af3137', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xb8af3137, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.