opx_infinityweather
Events
Last updated on
Network and local events of the weather module.
opx:net:weather:request
Client → server. Asks for a fresh snapshot. Sent at start and every 15 s; at most one per player per second is answered.
TriggerServerEvent('opx:net:weather:request', requestId)- requestId:
number
opx:net:weather:sync
Server → client. The authority's state. Sent on every change, on join, on request and as a 5 s heartbeat.
RegisterNetEvent('opx:net:weather:sync', function(snapshot, requestId) end)- snapshot:
tableprotocol,authorityEpoch,revision,weatherRevisionsecondsOfDay,rate,timeFrozenweather,weatherPreset,weatherPriority,weatherFrozentransitionSeconds,weatherTransitionRemainingMs,nextRollInMs,reason
- requestId?:
number
opx:on:weather:updated
Client, local. A snapshot was applied. Only reaches code inside opx_infinity's client VM.
AddEventHandler('opx:on:weather:updated', function(projection) end)- projection:
table— the accepted projection, asStatereturns it.