getCharInfo
returns a table of character info
Description
Retrieves a specific character information field (e.g., firstname, lastname, birthdate) for a player using their source.
Parameters
source
(number): The player's server-side source ID.info
(string): The charinfo key to retrieve (e.g."firstname"
,"lastname"
).
Returns:
any
: charinfo value
Example Use Case
local lastName = ps.getCharInfo(source, "lastname")
print("Player Last Name: " .. lastName)
Last updated