VehicleClient

isEntityAttachedToHandlerFrame

IS_ENTITY_ATTACHED_TO_HANDLER_FRAME0x57715966069157AD

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

SignatureJavaScript
isEntityAttachedToHandlerFrame(vehicle: Vehicle, entity: Entity): boolean
SignatureLua
isEntityAttachedToHandlerFrame(vehicle: Vehicle, entity: Entity): boolean

Usage

JavaScript
const result = isEntityAttachedToHandlerFrame(vehicle, entity);
Lua
local result = isEntityAttachedToHandlerFrame(vehicle, entity)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_ENTITY_ATTACHED_TO_HANDLER_FRAME(Vehicle vehicle, Entity entity)
Hash
0x57715966069157AD
Formerly
SET_PED_ENABLED_BIKE_RINGTONE _IS_VEHICLE_NEAR_ENTITY

Open in the interactive natives reference