RedM Natives

GET_VEHICLE_RADIO_STATION_INDEX

Hash0x57037960
Runtime nameGetVehicleRadioStationIndex
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_RADIO_STATION_INDEX(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int

Usage

Lua
local retval = GetVehicleRadioStationIndex(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x57037960, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleRadioStationIndex(vehicle);

// by hash
const retval = Citizen.invokeNative('0x57037960', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x57037960, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.