NEXO DOCSv1 · ENES
docs / laptop / laptop-music

Nexo Music

The whole server, same song, same second. Music from YouTube, SoundCloud, MP3 or radio, with 3D sound on headphones, cars, speakers and clubs.

v1.0.0QboxQBCoreESXOX

Features

  • 3D sound
  • YouTube · SoundCloud · MP3
  • Listen together
  • Cars, speakers and clubs

Requirements

ResourceRequired?What for
nexo_laptopYes (1.5.1+)The app runs inside the laptop
oxmysqlYesStores data. Tables are created automatically
FrameworkYesQbox, QBCore, ESX, ox_core
InventoryYesox_inventory, qs, codem, tgiann, core, origen, qb / ps / lj, ESX
OneSyncYesSync music for everyone

Installation

Includes the Nexo LaptopYou get the Nexo Laptop for free in Keymaster with the app. Install it first following its guide.
  1. Download the resource From keymaster.fivem.net → Granted Assets.
  2. Copy it to resources/ Named nexo_music.
    Don't rename itThe folder must be named exactly nexo_music. Otherwise it won't start (server, client or app) and warns in the console.
  3. Add it to your server.cfg Always after the laptop.
    ensure oxmysql
    ensure nexo_laptop
    ensure nexo_music
  4. Database Tables are created automatically on start.
  5. Staff permissions For the Administration tab. Groups in Config.Admin.groups also work.
    add_ace group.admin nexo_music.admin allow

Create the items (9)

They come ready in install/: 4 headphones, 4 speakers and the power bank. Add images to your inventory with those names.

['headphones_basic'] = { label = 'Basic headphones', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['headphones_wireless'] = { label = 'Wireless headphones', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['headphones_studio'] = { label = 'Studio headphones', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['earbuds_sport'] = { label = 'Sport earbuds', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['speaker_pocket'] = { label = 'Pocket speaker', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['speaker_portable'] = { label = 'Portable speaker', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['speaker_tower'] = { label = 'Party tower', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['speaker_bar'] = { label = 'Soundbar', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },
['powerbank'] = { label = 'Power bank', weight = 100, stack = false, close = true, server = { export = 'nexo_music.useItem' } },

Supported music

  • YouTube (videos, shorts, live and YouTube Music) and SoundCloud.
  • MP3 / OGG / M4A / WAV direct links and internet radio streams.
  • Title, artist and cover are read from the link automatically.
Not supportedSpotify, Apple Music, Amazon Music and Deezer are protected and can't play outside their apps. Some restricted YouTube videos can't either: the script warns and skips.

Where it plays

WhereHow
HeadphonesOnly you hear it, wherever you are. Visible on your character.
CarHeard inside; outside only with windows down or door open.
Handheld speakerPlays around you as you walk.
SpeakersPlaced anywhere and kept after server restarts.
VenuesWith a DJ booth (turns and tipped requests) or a job (staff on duty choose).
  • 3D sound, walls that muffle audio and music ducks when someone talks nearby.
  • Car neon to the beat and everyone hears the same song at the same second.

The app

  • Home, library and search: Liked, shared playlists and paste links.
  • Listen together by ID and send songs or playlists to other players.
  • City radio and live player stations.
  • Devices: headphones and speakers shop, battery and GPS. Your month in music stats.

Keys without opening the laptop (pause, next, previous and volume) in Settings → Key Bindings → FiveM → NEXO Music, or Config.Keys.

In-game administration

  • Settings: allowed sources, blacklist, limits, police speaker seizure, battery, neon, language and Discord.
  • Stations, venues (centered where you stand) and shop prices.
  • History: who played what, where and when, and mute a player for X minutes.

Editable files

With Cfx.re escrow these files stay open: config.lua, server/config.lua, locales/, html/i18n.js, install/.