Player Details
Player Details
Last updated
Player Details
Last updated
Follow the steps below to customize player details.
Edit the PlayerDetails
section in the Customize.lua
file to adjust how you want to display player details.
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
.
Add the relevant function to the server/function.lua
file to define how to obtain player details on the server side.
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).
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.