UZ Scripts
Pause Menu

Social & Online Time

Configure social media links, server online player count, and time format settings in Taintless Pause Menu.

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

Prop

Type

Social Media Object Structure

Prop

Type

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

  • 09:30 (9:30 AM)
  • 14:15 (2:15 PM)
  • 23:45 (11:45 PM)
  • 00:00 (Midnight)

Format: H:MM AM/PM

  • 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

Prop

Type

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.

Verify Time Format

Check if time displays in the correct format (12-hour or 24-hour).

Check Player Count

Verify the current/max player count shows accurately.

Click each social media button to confirm it opens the correct URL.

Confirm Icons & Layout

Ensure all icons display properly and the layout works on different resolutions.

Troubleshooting

On this page