Setup

Installation

  • Extract rar file [STANDALONE] GUSTI DATETIME

  • Copy / cut gusti-datetime to your server resources folder

  • Open server.cfg

  • Add gusti-datetime script with ensure gusti-datetime in server.cfg

  • Start server / Restart server

  • Finished

Configuration

Open the config.lua file located in the gusti-datetime folder to configure

gusti-datetime/config.lua
Config = {}

Config.MonthName = {
    "January", "February", "March", "April", "May", "June",
    "July", "August", "September", "October", "November", "December"
}

Config.Date = {
    {
        title = 'Show All Date Time',
        icon = 'calendar-days',
        format = "Date Time : %02d %s %04d %02d:%02d:%02d %s",
        values = {'day', 'monthName', 'year', 'hour', 'minute', 'second', 'ampm'}
    },
    {
        title = 'Show Date',
        icon = 'calendar-days',
        format = "Date : %02d %s %04d",
        values = {'day', 'monthName', 'year'}
    },
    {
        title = 'Show Time',
        icon = 'clock',
        format = "Time : %02d:%02d:%02d %s",
        values = {'hour', 'minute', 'second', 'ampm'}
    }
}

Usage

exports['gusti-datetime']:ShowDateTimeMenu()

Example

RegisterCommand("datetime", function()
    exports['gusti-datetime']:ShowDateTimeMenu()
end)

Last updated