setVehRadioStation
SET_VEH_RADIO_STATION0x1B9C0099CB942AC6The GTA V native SET_VEH_RADIO_STATION of the AUDIO namespace, as LS:MP client scripts call it: the global function setVehRadioStation, in JavaScript and in Lua.
setVehRadioStation(vehicle: Vehicle, radioStation: string): voidsetVehRadioStation(vehicle: Vehicle, radioStation: string)Usage
JavaScript
setVehRadioStation(vehicle, radioStation);Lua
setVehRadioStation(vehicle, radioStation)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
radioStation | string | string | string |
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.
List of radio stations that are in the wheel, in clockwise order, as of LS Tuners DLC: https://git.io/J8a3k
Reference
- Namespace
- Audio AUDIO
- In the game
void SET_VEH_RADIO_STATION(Vehicle vehicle, const char* radioStation)- Hash
0x1B9C0099CB942AC6