VehicleClient

getDoesVehicleHaveTombstone

GET_DOES_VEHICLE_HAVE_TOMBSTONE0x71AFB258CCED3A27

The GTA V native GET_DOES_VEHICLE_HAVE_TOMBSTONE of the VEHICLE namespace, as LS:MP client scripts call it: the global function getDoesVehicleHaveTombstone, in JavaScript and in Lua.

SignatureJavaScript
getDoesVehicleHaveTombstone(vehicle: Vehicle): boolean
SignatureLua
getDoesVehicleHaveTombstone(vehicle: Vehicle): boolean

Usage

JavaScript
const result = getDoesVehicleHaveTombstone(vehicle);
Lua
local result = getDoesVehicleHaveTombstone(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns true only if the "tombstone" bone is attached to the vehicle, irrespective of "FLAG_HAS_TOMBSTONE" being present or not. Detaching the tombstone will return false.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL GET_DOES_VEHICLE_HAVE_TOMBSTONE(Vehicle vehicle)
Hash
0x71AFB258CCED3A27
Introduced
Game build 1604 legacy numbering
Formerly
_GET_DOES_VEHICLE_HAVE_TOMBSTONE

Open in the interactive natives reference