Character

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

Wosa.Character.AddLicensePoints(
    user --[[ int ]],
    points --[[ int ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.
-> points: The amount of points you want to add.

Description:
Use this function to give "driving license points" to a user manually.

--]]
local character = Wosa.Character.Data(
    user --[[ int ]]
)

--[[

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

Returnal:
-> character : table
				firstname : string
				middlename = : string
				lastname = : string
				day = : string
				month =  : string
				year = : int
				gender = : string
				phone_number : string
				driver_license : bool
				truck_license : bool
				air_license : bool
				boat_license : bool
				firearm_license : string
				job : string

Description:
This function is useful for getting "character" classed data, Gets data from the
live library from the framework.

Example:
local firstname = Wosa.Character.Data(user).firstname

print('My character firstname is '..firstname..'!')

--]]
local character = Wosa.Character.DataFromName(
    firstname, --[[ string ]]
    lastname --[[ string ]]
)

--[[

Parameters:
-> firstname: The firstname of the character.
-> lastname: The lastname of the character.

Description:
Returns data from any character_(1-3) table from the database, Is structured the same
as the table up above but needs to be looped/indexed before.

--]]
local characters = Wosa.Character.All()

--[[

Parameters:
-> firstname: The firstname of the character.
-> lastname: The lastname of the character.

Description:
Returns all characters on the database, Structured the same as the returnal
for the one above

--]]

Last updated

Was this helpful?