First Time Join Sound for FiveM

# 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:

  1. Unique Welcome Sound: Treat your first-timers with a memorable sound the moment they set foot in your server.
  2. Persistent Data: Keeps track of players who have joined at least once, ensuring the sound only plays on their first visit (survives server restarts).
  3. 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
);”

  1. Drop the firstJoinSound folder into your server’s resources directory.
  2. Add start firstJoinSound to your server configuration.
  3. Ensure you’ve properly set up your database connection (using oxmysql).
  4. Restart your server and enjoy!

Configuration:

Inside server.lua, there are two configuration variables:

  • ALWAYS_PLAY_DEBUG: Set to true to have the sound play on every join (for testing).
  • SHOW_DEBUG_PRINTS: Enables or disables debug print messages.

Download:

4 Likes

I think you forgot to actually post the resource. Lol
I can’t find any links or attachments.

1 Like

yea fixed ^^

1 Like

Fix :
CREATE TABLE joined_players (
identificador VARCHAR(255) PRIMARY KEY,
hasJoined BOOLEAN
);