User

Server functions that are in some way related to the user aspects.

local license = Wosa.User.License(
    user --[[ int ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.

Description:
Gets the r* license used by our framework mainly. Note, we do NOT use the steam
identifiers.

]]
local currentTable = Wosa.User.CurrentDB(
    user, --[[ int ]]
    type --[[ string ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.
-> type: The database type you want returned, 'c' or 'i'.

Description:
Gets either the inventory or character table currently used by the user.

Example:
local character_table = Wosa.User.CurrentDB(user, 'c')
local inventory_table = Wosa.User.CurrentDB(user, 'i')

]]
local user = Wosa.User.UserFromLicense(
    license --[[ string ]]
)

--[[

Parameters:
-> license: The r* license of the user.

Description:
Used to return the user ID (server player ID) from a license string, Can be useful
to use if you do not have access to the playerID for example.

]]

Last updated

Was this helpful?