Skip to main content
Use a net event when the client tells the server something and needs no answer.
Never use RegisterNetEvent directly in a UgCore resource. Unvalidated, unlimited net events are the most common hole in FiveM servers.

Client to server

server.lua
client.lua
The event is registered as <your resource>:<name>. It takes the same options as callbacks: schema, rate, requirePlayer, requireAlive and permission. Rejected events are dropped and flagged, with no reply.

Server to client

client.lua
server.lua
Clients only receive net events from the server. Trigger functions take the full event name.

Before Ready

Net events and callbacks that arrive before ug-core is ready are dropped silently. This only happens while ug-core restarts with players online.