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
TriggerServerEvent('cd_easytime:OpenUI')Open UI
TriggerEvent('cd_easytime:OpenUI', source)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
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.instantweather: Indicates if the weather changes are instant (boolean).data.instanttime: Indicates if the time changes are instant (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 Real Time & Weather Data
Explanation
This export returns a table containing the following information:
data.hours: The current hour (number).data.mins: The current minutes (number).data.gta_weather: The in-game weather condition (string).data.real_weather: The actual weather condition (string).data.real_weather_description: A description of the real weather (string).data.country: The country code (string).data.city: The city name (string).
Last updated
Was this helpful?

