Functions
This feature is available from the version 1.0.1
We can add items or licenses to player using our system instead of reinventing the wheel.
You need to paste the function into the onResult function, specifically in the data.result == "passed"
, like this:
config.lua
Give Item
We don't want hacker to be able to give themselves an item so we created a feature to whitelist certain items and assign an unique id to them.
item_list.lua
We can add as much items as we want, but make sure the ids are not same.
Value
Explanation
itemName
name of the item that will be given to the players inventory
maxAmount
maximum amount of items added on each exam pass
Now we just need to add our function to the config
Give license
config.lua
Last updated