UZStore
StoreYoutubeDiscord
  • 👋Welcome to UZStore
  • 📞INFORMATION
    • ⭐Discord Customer Role
    • ❔How can I download the files?
    • 🖥️Supported Resolutions
    • 🛠️Tebex Integration
    • 📝Updates
      • 🧙‍♂️UZCore
      • 🚧Trygon Garage
      • 🏆〡Trygon Hud V2.5
      • 🎁 Daily reward
      • 🌎〡Spawn Selector
      • 🤖〡Register
      • 🔧〡Trygon Mechanic
      • 🚗〡Trygon VehicleShop V2
    • 🧙‍♂️UZCore
  • 💯Taintless
    • ⏸️〡Pause Menu
      • How is it Customize ?
        • Player Details
        • Social/Online/Time
        • Custom Page
        • Announces
      • Changelog
        • v0.9.3
        • v0.9.4
        • v0.9.5
    • 💎〡Multicharacter
      • SQL Installation
      • Notification
      • Changelog
    • 🌎〡Spawn Selector
      • Customize
      • Changelog
        • v1.4.0
        • v1.5.0
    • 🌴〡Pure Hud
      • Customize
  • 👀Typhon
    • 🧙🏼〡Player List
      • Customize
    • 🤝〡Second Hand
      • Customize
      • Common errors and their solutions
    • 🎁〡Daily Reward
      • Customize
    • 📷〡Job Selector
      • Customize
  • 💚Trygon
    • 🏆〡Trygon Hud V2.5
      • SQL Installation
      • Common errors and their solutions
    • 🚧〡Trygon Garage
      • Customize
      • SQL Installation
    • 🎦〡Loadig Screen
      • Customize
    • 🎇〡Trygon Inventory
      • Customize
      • Exports
      • How is it installed ?
    • 🚗〡Trygon VehicleShop V2
      • Customize
      • Common errors and their solutions
    • 🤖〡Register
      • Customize
    • 🔧〡Trygon Mechanic
      • Customize
      • Common errors and their solutions
    • 🚛〡Jobs shipping
      • SQL Installation
Powered by GitBook
On this page

Was this helpful?

  1. Taintless
  2. ⏸️〡Pause Menu
  3. How is it Customize ?

Custom Page

PreviousSocial/Online/TimeNextAnnounces

Last updated 6 months ago

Was this helpful?

Custom Pages Configuration

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 = '' },
}

In the code snippet above:

  • color: Defines the text color for the button.

  • text: The label displayed on the button (e.g., GAME SHOP, VIP Cars, Weapon Shop).

  • background: The background image for the button (resources/images/CustomPage).

  • event: Event to be triggered when the button is clicked (currently left empty; you can define a client-side event here).

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 and then add the event name to the event field.

Here's an example of defining a client-side event:

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

You would then update the CustomPage entry like this:

CustomPage = {
    { color = '#FBCA79', text = 'GAME SHOP', background = 'GameShop.png', event = 'OpenGameShop' },
    -- Other entries remain unchanged
}

Note: Remember, event names must be the same.

3. Customizing Button Appearance

  • Button Color: The color attribute allows you to define how each button looks, allowing you to differentiate each custom page visually. Make sure the colors fit well with your overall design for better user experience.

  • Background Image: The background image can be customized to visually represent the purpose of the button. For instance, using an image that represents in-game items for the Game Shop.

4. Testing Your Custom Pages

After making changes, ensure to test each button in the game to verify that the correct event is triggered and the visuals are displayed as expected. This step is crucial to ensure that the user experience is smooth and there are no issues with accessing in-game features.

💯
❤️
Custom Page