Skip to main content
ug-core is headless: it returns error codes and emits events. Your resource decides what the player sees. ug-lib has no network, so the server never calls it directly.

Notify from the server

Send your own event to your own client script through UgCore.Network, then show the notification there.
server.lua
client.lua
locales/en.json
List locales/*.json in your resource’s files {} so clients can read them.

React to events

Client events of ug-core reach every resource, so a HUD shows changes without asking:
client.lua
Showing the same id again updates the notification in place, so fast changes never stack.

Ask before an action

Ask on the client, then send the intent. The server checks everything again.
client.lua