OPX//77
opx_infinitytheme

Events

Last updated on

Network events and page channels of the theme module.

opx:net:theme:request

Client → server. "What is the theme?" Sent once per client start. Answered at most every 2 s per player.

TriggerServerEvent('opx:net:theme:request')

opx:net:theme:set

Server → client. The resolved theme. The client checks it against the same bounds again.

RegisterNetEvent('opx:net:theme:set', function(payload) end)
  • payload: table — as Current returns it

Page channels

ChannelDirectionPayloadMeaning
theme:readypage → Lua—The page is up and can take the theme.
theme:setLua → pagepayloadSent once both the page is ready and the server has answered; re-sent when the page is rebuilt.

On this page