getGameTime12

ps.getGameTime12()

Returns the current game time in 12-hour format with AM/PM notation.

Returns:

  • string: Time formatted as "H:MM AM/PM" (e.g., "2:30 PM", "9:05 AM")

Example:

local time12 = ps.getGameTime12()
print("Current time (12h):", time12) -- Output: "2:30 PM"

-- Use in notifications
TriggerEvent('QBCore:Notify', 'Meeting scheduled for ' .. time12, 'success')

Last updated