# First Time Join Sound for FiveM
Version: 1.0
Author: PurKus
Description:
This resource plays a unique sound when a player joins the server for the very first time. It’s a great way to welcome newcomers to your server in a memorable fashion. Built with robust debugging features, server owners can easily test and modify the experience for their players and configure it to your liking.
Features:
- Unique Welcome Sound: Treat your first-timers with a memorable sound the moment they set foot in your server.
- Persistent Data: Keeps track of players who have joined at least once, ensuring the sound only plays on their first visit (survives server restarts).
- Debugging Tools: With simple config switches, enable debug prints and force the sound to play on every join to assist with setup and testing.
Installation:
FIRST: DB - Create a Table, oxmysql code is
“CREATE TABLE joined_players (
identifier VARCHAR(255) PRIMARY KEY,
hasJoined BOOLEAN
);”
- Drop the
firstJoinSoundfolder into your server’sresourcesdirectory. - Add
start firstJoinSoundto your server configuration. - Ensure you’ve properly set up your database connection (using
oxmysql). - Restart your server and enjoy!
Configuration:
Inside server.lua, there are two configuration variables:
ALWAYS_PLAY_DEBUG: Set totrueto have the sound play on every join (for testing).SHOW_DEBUG_PRINTS: Enables or disables debug print messages.
Download: