VehicleClient

detachEntityFromCargobob

DETACH_ENTITY_FROM_CARGOBOB0xAF03011701811146

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

SignatureJavaScript
detachEntityFromCargobob(cargobob: Vehicle, entity: Entity): boolean
SignatureLua
detachEntityFromCargobob(cargobob: Vehicle, entity: Entity): boolean

Usage

JavaScript
const result = detachEntityFromCargobob(cargobob, entity);
Lua
local result = detachEntityFromCargobob(cargobob, entity)

Parameters

ParameterTypeJavaScriptLua
cargobobVehiclenumberinteger
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL DETACH_ENTITY_FROM_CARGOBOB(Vehicle cargobob, Entity entity)
Hash
0xAF03011701811146
Introduced
Game build 678 legacy numbering
Formerly
_DETACH_ENTITY_FROM_CARGOBOB

Open in the interactive natives reference