Module sv_loaded
Loaded system
Functions
| OnPlayerLoaded (cb) | OnPlayerLoaded function. |
| OnPlayerUnloaded (cb) | OnPlayerUnloaded function. |
| OnJobChanged (cb) | OnJobChanged function. |
| SendConfigToClient (name, ...) | SendConfigToClient function. |
Functions
- OnPlayerLoaded (cb)
-
OnPlayerLoaded function.
This function is called when a player has loaded.
Parameters:
- cb The callback function. function
Usage:
exports.jones_util:OnPlayerLoaded(function() print("Player has loaded!") end)
- OnPlayerUnloaded (cb)
-
OnPlayerUnloaded function.
This function is called when a player has unloaded.
Parameters:
- cb The callback function. function
Usage:
exports.jones_util:OnPlayerUnloaded(function() print("Player has unloaded!") end)
- OnJobChanged (cb)
-
OnJobChanged function.
This function is called when a player has changed job.
Parameters:
- cb The callback function. function
Usage:
exports.jones_util:OnJobChanged(function(job) print("Player has changed job to " .. job) end)
- SendConfigToClient (name, ...)
-
SendConfigToClient function.
This function sends the config to the client.
Parameters:
- name The config name. string
- ... The config. any
Usage:
exports.jones_util:SendConfigToClient("jones_util", {})