UZ Scripts
YoutubeDiscordStore
  • πŸ‘‹Welcome to UZ Scripts
  • πŸ› οΈTebex Integration
  • Taintless
    • ❓・What is Taintless
    • Pause Menu
      • Announces
      • Custom Pages
      • Player Details
      • Social Online Time
    • Multicharacter
      • Installation Guide
      • Customize Configuration File
    • Vehicle Shop
    • Spawn Selector
Powered by GitBook
LogoLogo

Taintless

  • Pause Menu
  • Vehicle Shop
  • Multicharacter
  • Spawn Selector
  • Bundle#1
  • [Free] Pure Hud

Trygon

  • Loading Screen
  • Trygon Hud
  • Fuel
  • Garage

Typhon

  • Daily Rewards
  • Job Selector
  • Second Hand

UZ

  • Home
  • Blog
  • Scripts
On this page
  • Overview
  • 1. Configuring Social Media Links and Server Settings
  • Configuration Parameters
  • Social Media Object Structure
  • 2. Time Format Configuration
  • 24-Hour Format Example
  • 12-Hour Format Example
  • 3. Server Online Player Settings
  • Maximum Online Players
  • Display Examples
  • 4. Social Media Configuration
  • Icon Requirements
  • Available Default Icons
  • Example Configurations
  • 5. Testing Your Configuration
  • Testing Checklist
  • Troubleshooting Common Issues
  • Related Pages

Was this helpful?

Edit on GitHub
  1. Taintless
  2. Pause Menu

Social Online Time

PreviousPlayer DetailsNextMulticharacter

Last updated 14 days ago

Was this helpful?

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.


1. Configuring Social Media Links and Server Settings

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

Limits: You can add a minimum of 0 and maximum of 3 social media links.


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)

Format: H:MM AM/PMExamples:

  • 9:30 AM

  • 2:15 PM

  • 11:45 PM

  • 12:00 AM (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

Tip: Set ServerMaxOnline to your actual server limit for accurate capacity display.


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/' }
}
Socials = {
    { icon = 'discord.svg', link = 'https://discord.gg/rp-server' },
    { icon = 'website.svg', link = 'https://yourwebsite.com' },
    { icon = 'store.svg', link = 'https://store.yourserver.com' }
}
Socials = {
    { icon = 'discord.svg', link = 'https://discord.gg/minimal' }
}

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


Related Pages

Player Details