Social Online Time

FiveM Pause Menu Script

Overview

Configure social media links, server online player count, and time format settings. This section allows you to connect your community through social media links and display real-time server information to enhance player engagement.

Flexible Configuration: You can add 0-3 social media links and customize how time and player count are displayed.


In Customize.lua, you can configure social media links and server settings:

Use24HourFormat = false,  -- true: 24-hour format, false: 12-hour format
ServerMaxOnline = 1200,   -- Maximum number of players that can be online

Socials = {  -- min: 0 - max: 3
    { icon = 'youtube.svg', link = 'https://www.youtube.com/@UZStoree' },
    { icon = 'discord.svg', link = 'https://discord.gg/uzstore' },
    { icon = 'store.svg', link = 'https://uzstore.tebex.io/' }
}

Configuration Parameters

Parameter
Type
Description

Use24HourFormat

Boolean

true for 24-hour format, false for 12-hour format

ServerMaxOnline

Number

Maximum number of players allowed on the server

Socials

Array

List of social media links (0-3 items)

Social Media Object Structure

Parameter
Type
Description

icon

String

Icon filename (stored in resources/images/Socials)

link

String

URL to open when the social media button is clicked


2. Time Format Configuration

24-Hour Format Example

Use24HourFormat = true  -- Display: 14:30, 09:15, 23:45

12-Hour Format Example

Use24HourFormat = false  -- Display: 2:30 PM, 9:15 AM, 11:45 PM

Format: HH:MMExamples:

  • 09:30 (9:30 AM)

  • 14:15 (2:15 PM)

  • 23:45 (11:45 PM)

  • 00:00 (Midnight)


3. Server Online Player Settings

Maximum Online Players

Set the ServerMaxOnline value to match your server's actual player limit. This helps players understand the server capacity and current load.

ServerMaxOnline = 1200  -- Supports up to 1200 players

Display Examples

The player count will be displayed as:

  • Current/Maximum: "45/1200 Players Online"

  • Percentage: Automatically calculated based on current vs maximum


4. Social Media Configuration

Icon Requirements

  • Format: SVG (recommended) or PNG

  • Size: 32x32 pixels minimum

  • Location: resources/images/Socials/

  • Style: Simple, recognizable social media icons

Available Default Icons

Icon Name
Platform
Purpose

youtube.svg

YouTube

Video content, tutorials

discord.svg

Discord

Community chat, support

store.svg

Store

Server shop, donations

twitter.svg

Twitter/X

News, updates

instagram.svg

Instagram

Screenshots, community

website.svg

Website

Official server website

Example Configurations

Socials = {
    { icon = 'discord.svg', link = 'https://discord.gg/yourserver' },
    { icon = 'youtube.svg', link = 'https://youtube.com/@yourchannel' },
    { icon = 'store.svg', link = 'https://yourstore.tebex.io/' }
}

5. Testing Your Configuration

After making all the adjustments, verify in-game that the information is displayed correctly.

Testing Checklist

Time Format: Check if time displays in correct format ✅ Player Count: Verify current/max players show accurately ✅ Social Links: Test each social media button opens correct URL ✅ Icons: Confirm all icons display properly ✅ Responsive Design: Check layout works on different resolutions

Browser Testing: Social media links will open in the player's default browser, so ensure URLs are correct and accessible.

Troubleshooting Common Issues

Issue
Solution

Icons not showing

Check file paths and ensure icons exist in resources/images/Socials/

Links not working

Verify URLs are complete with https://

Time format wrong

Double-check Use24HourFormat boolean value

Player count incorrect

Ensure ServerMaxOnline matches server settings


Player Details

Last updated

Was this helpful?