Skip to Content

Server guide

The server side works on any framework. source is the player id. -1 sends to everyone (notifications only).

your_script/server.lua
exports.gui_interface:Notificar(source, "sucesso", "Payment received", 5000, "Bank") exports.gui_interface:Item(source, "+", "water", 2)

Skill check requested by the server

Habilidade waits for the player’s answer. Call it inside a thread or an event handler.

your_script/server.lua
local passed = exports.gui_interface:Habilidade(source, 3, "dificil") if passed then -- hit every round end

Full list: Server exports.