AudioClient

setVehicleRadioEnabled

SET_VEHICLE_RADIO_ENABLED0x3B988190C0AA6C0B

The GTA V native SET_VEHICLE_RADIO_ENABLED of the AUDIO namespace, as LS:MP client scripts call it: the global function setVehicleRadioEnabled, in JavaScript and in Lua.

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

Usage

JavaScript
setVehicleRadioEnabled(vehicle, toggle);
Lua
setVehicleRadioEnabled(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.

can't seem to enable radio on cop cars etc

Reference

Namespace
Audio AUDIO
In the game
void SET_VEHICLE_RADIO_ENABLED(Vehicle vehicle, BOOL toggle)
Hash
0x3B988190C0AA6C0B

Open in the interactive natives reference