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. Defining Custom Pages in Customize.lua
  • Configuration Parameters
  • 2. Adding Events for Custom Pages
  • Example Client-Side Event
  • Updated Configuration
  • 3. Customizing Button Appearance
  • Color Selection
  • Background Images
  • 4. Testing Your Custom Pages
  • Related Pages

Was this helpful?

Edit on GitHub
  1. Taintless
  2. Pause Menu

Custom Pages

PreviousAnnouncesNextPlayer Details

Last updated 14 days ago

Was this helpful?

FiveM Pause Menu Script

Overview

Custom pages allow you to create interactive buttons that link to specific features or events in your server. These pages can be used for shops, VIP areas, weapon stores, or any custom functionality you want to provide to your players.

Note: Custom pages are fully customizable and can trigger client-side events when clicked.


1. Defining Custom Pages in Customize.lua

You can define custom pages by editing the CustomPage section in the Customize.lua file.

CustomPage = {  -- event (client side)
    { color = '#FBCA79', text = 'GAME SHOP',   background = 'GameShop.png',   event = '' },
    { color = '#00f37a', text = 'Vip Cars',    background = 'VipCarShop.png', event = '' },
    { color = '#77CDCC', text = 'Weapon Shop', background = 'WeaponShop.png', event = '' },
}

Configuration Parameters

Parameter
Type
Description

color

String

Hex color code for the button text

text

String

Label displayed on the button

background

String

Background image filename (stored in resources/images/CustomPage)

event

String

Client-side event name to trigger when clicked

Important: Background images must be placed in the resources/images/CustomPage directory.


2. Adding Events for Custom Pages

To make these buttons interactive, you need to add a client-side event. For example, if you want the GAME SHOP button to open the game shop interface, you should define an event in your client-side script.

Example Client-Side Event

RegisterNetEvent('OpenGameShop', function()
    -- Code to open the game shop interface
    print('Game Shop opened')
    -- Add your custom logic here
end)

Updated Configuration

CustomPage = {
    { color = '#FBCA79', text = 'GAME SHOP', background = 'GameShop.png', event = 'OpenGameShop' },
    { color = '#00f37a', text = 'Vip Cars', background = 'VipCarShop.png', event = 'OpenVipCars' },
    { color = '#77CDCC', text = 'Weapon Shop', background = 'WeaponShop.png', event = 'OpenWeaponShop' },
}

Pro Tip: Event names must match exactly between your configuration and your client-side event handlers!


3. Customizing Button Appearance

Color Selection

The color attribute allows you to define how each button looks, enabling visual differentiation between custom pages. Choose colors that fit well with your overall design for better user experience.

Background Images

Background images can be customized to visually represent the purpose of each button:

  • Use shopping-related imagery for Game Shop

  • Use car imagery for VIP Cars

  • Use weapon imagery for Weapon Shop

Image Dimensions: 200x100 pixelsFormat: PNG with transparency supportQuality: High resolution for crisp display

Path: resources/images/CustomPage/Examples:

  • GameShop.png

  • VipCarShop.png

  • WeaponShop.png


4. Testing Your Custom Pages

After making changes, ensure to test each button in the game to verify that:

βœ… The correct event is triggered βœ… Visuals are displayed as expected βœ… Colors and images render properly βœ… All interactive elements work smoothly

Testing Checklist:

  1. Restart the resource after configuration changes

  2. Check console for any errors

  3. Test each button individually

  4. Verify events are properly registered


Related Pages

Player Details
Social Online Time