Keys/Chat/Events/Exports

Chat Commands

  • You can rename or disable these chat commands in the [configs/config.lua].

Command

Description

/easytime

The command for staff to open the UI.



Events

  • These events are entirely optional and can be used as needed.

Open UI

This event opens the UI, enabling players to access its features. A permissions check ensures that only authorized players can trigger it.
TriggerServerEvent('cd_easytime:OpenUI')



Exports

These exports are entirely optional and can be used as needed.


Get All Data

Explanation

This export returns a table containing the following information:

  • data.weather: The current in-game weather condition (string).

  • data.hours: The current hour (number).

  • data.mins: The current minutes (number).

  • data.freeze: Indicates if time/weather synchronization is frozen (boolean).

  • data.dynamic: Indicates if the weather is dynamic (boolean).

  • data.blackout: Indicates if a blackout is in effect (boolean).

  • data.tsunami: Indicates if a tsunami warning is active (boolean).

  • data.timemethod: The method of tracking time, either "realtime" or "gametime" (string).

  • data.weathermethod: The method of tracking weather, either "realweather" or "gameweather" (string).


Get Pause Sync State

Last updated

Was this helpful?