Exports
For the people that actually have to set up the script with the rest of the server
Exports
MAP:
NAME:
citizenId
/job.name
/gang.name
XPTYPE: The name of the type you are using, defined in the
shared/sconfig.lua
file.AMOUNT: An integer amount or the string
'auto'
.typeMult: The multiplier that will be applied.
Note: All exports work based on the specified name
& type
.
To use an export, use this format:
Available Exported Functions:
[CL]/[SV] GetLevel(name, xpType)
Returns the integer value of the level.
[CL]/[SV] GetXP(name, xpType)
Returns the integer value of experience.
[SV] GetLimit(name, xpType)
Returns the total required XP to reach the next level (not the remaining amount).
[SV] AddXP(src, xpType, amount, typeMult)
Adds XP to the person with the source specified for the given
xpType
.amount
can be an integer or'auto'
.If
typeMult
is skipped, the multiplier defaults to 1.
[SV] RemoveXP(src, xpType, amount)
Removes XP from the person with the source specified for the given
xpType
.amount
can be an integer or'auto'
.
Last updated