Skip to content

CurrentUser

Anthony Headley edited this page Jul 27, 2023 · 1 revision

CurrentUser() : UserDataObject

Brief:

Returns a data object to the currently logged-in user session.

Offical Documentation Link

Parameters:

None

Returns:

Type Description
UserDataObject The currently logged in user

Examples:

Echo("Current Users")
Echo("Name: " .. CurrentUser().Name)            -- Admin
Echo("Rights: " .. CurrentUser().Rights)        -- Admin
Echo("Language: " .. CurrentUser()["Language"]) -- en
Clone this wiki locally