arrow-down-left-and-arrow-up-right-to-centerExports

Client-side exports

Open Radio Menu

Open the radio interface for a specific station:

exports.kossek_music:openRadioMenu(stationType, stationIdOrEntity)
  • stationType (string): Type of station ('vehicle' or 'location')

  • stationIdOrEntity (number/string): Station ID or entity handle

Example:

-- Open vehicle radio menu
exports.kossek_music:openRadioMenu('vehicle', GetVehiclePedIsIn(PlayerPedId()))

-- Open location radio menu
exports.kossek_music:openRadioMenu('location', 'mechanic_garage')

Add radio location

exports.kossek_music:addRadioLocation(locationName, locationData)

Add radio location

Example:

Server-side exports

Player Permissions

Give player permission

Check player permission

Example:

Vehicle Permissions

Give vehicle permission

Check vehicle permission

Example:

Location Permissions

Give location permission

  • locationName (string): Name of the location

  • identifier (string): Player identifier

Example:

Last updated