Installation
Drop it in, ensure it, done. No database, no API keys.
1. Install
- Unzip and place the
AC_autoplayfolder in your server'sresourcesdirectory. Any category folder works, for example[standalone]. - Add this line to your
server.cfg:cfgensure AC_autoplay - Restart the server. A brand new resource needs a full restart, not just a
refresh.
Dependencies: none required. ox_lib is optional (nicer notifications). No database, no API keys.
2. Try it
- Get in a vehicle.
- Press F5 or type
/autoplay. - Paste a YouTube link in Search or on the Home bar, then press Play or Add to Queue.
- Everyone in or near the car hears it in 3D, in sync.
3. Tune it (optional)
Everything is configured in config.lua, which stays open and editable after escrow. You can change it and restart the resource. A few of the most common tweaks:
| Setting | Default | What it does |
|---|---|---|
OpenCommand / OpenKey | autoplay / F5 | How players open the UI. |
ControlScope | driver | driver means only the driver controls playback, occupants means anyone inside can. |
MaxDistance | 25 | How far the audio carries (metres). |
Spatial3D | true | HRTF 3D positioning. Set false for legacy mono. |
VoiceDuck | true | Dip music while talking on voice. |
The full option list is on the Configuration page.
Anti-cheat note
AC AutoPlay uses no os.* or load calls, so it is anti-cheat friendly. For WaveShield style setups, whitelist the AC_autoplay:* events and the autoplay state bag.
