Server guide
Functions in the server part of functions.lua. Only change the ones your framework does differently.
| Function | What it does |
|---|---|
Gui.UserId(source) | The player’s fixed identifier. |
Gui.Fonte(identificador) | The source of an online identifier. |
Gui.Nome(source) | Character name. |
Gui.TemPermissao(source, permissao) | Unlocks the panel and commands. |
Gui.Notificar(source, texto, tipo, titulo) | Notice to the player. |
Gui.PagarDinheiro(user_id, valor) | Cash prize (Config.contaPremio). |
Gui.EstaMorto(source) | Called by the server before counting a death. |
Gui.AoEntrar(source, user_id) / Gui.AoSair(source, user_id) | Run when the player enters and leaves the night. |
Gui.AoCriarVeiculo(veiculo, placa, modelo) | Event vehicle spawned (fuel, etc.). |
Gui.DarChaveVeiculo(source, veiculo, placa) | Gives the event vehicle key. |
Deaths counted wrong
Adjust Gui.EstaMorto(source). Return true when the player is dead on your framework.
Vehicle keys
If your keys script is not one of the recognized ones (vehiclekeys, qbx_vehiclekeys, qs-vehiclekeys, wasabi_carlock), replace Gui.DarChaveVeiculo:
functions.lua
function Gui.DarChaveVeiculo(source, veiculo, placa)
exports["my_keys"]:GiveKey(source, placa)
end