VehicleClient

setGoonBossVehicle

SET_GOON_BOSS_VEHICLE0xAB31EF4DE6800CE9

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

SignatureJavaScript
setGoonBossVehicle(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setGoonBossVehicle(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setGoonBossVehicle(vehicle, toggle);
Lua
setGoonBossVehicle(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Used for GTAO CEO/Associate spawned vehicles.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_GOON_BOSS_VEHICLE(Vehicle vehicle, BOOL toggle)
Hash
0xAB31EF4DE6800CE9
Introduced
Game build 573 legacy numbering

Open in the interactive natives reference