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 ?

Player Details

Player Details

PreviousHow is it Customize ?NextSocial/Online/Time

Last updated 6 months ago

Was this helpful?

Follow the steps below to customize player details.

1. Defining Player Details in Customize.lua

Edit the PlayerDetails section in the Customize.lua file to adjust how you want to display player details.

PlayerDetails = {
    icon = 'money.svg',  -- icon file path (resources/images/PlayerDetails)
    header = 'Money',    -- header (e.g., "Money")
    event = 'GetMoney'   -- event to be called (defined in server/function.lua)
}

In the code snippet above:

  • icon: File path of an icon.

  • header: The name of the displayed header.

  • event: The event or function name to be called to fetch the relevant data.

Note: The GetMoney function name must match the event name that we added to PlayerDetails.

2. Defining the Function in server/function.lua

Add the relevant function to the server/function.lua file to define how to obtain player details on the server side.

GetMoney = function(Player, data)
    return '$ ' .. Player?.PlayerData?.money?.cash
end

In the code snippet above:

  • The GetMoney function is written to return the player's cash. This function retrieves the money data from the Player object and displays it.

  • The function takes two parameters: Player and data.

    • Player: Represents the player object and sends the player details.

    • data: Sends the content of PlayerDetails (icon, header, event).

3. Test Your Customizations

After making all the adjustments, verify in-game that the information is displayed correctly. If you encounter any errors, review your event functions or PlayerDetails settings again.

💯
Player Details