Add new effect 'Disable Pedestrians'; update 'Back To Black' effect timing; enhance 'Annoying RC Vehicle' functionality

This commit is contained in:
2026-01-20 20:52:45 +00:00
parent 5e7aecc712
commit 8b16e4aefd
8 changed files with 160 additions and 5 deletions

View File

@@ -33,8 +33,7 @@ end
-- Called every game tick while the effect is active
function OnTick()
-- Keep this lightweight. Use this for per-frame checks or gradual changes.
local pc_time = os.date("*t")
SET_CLOCK_TIME(pc_time.hour, pc_time.min, pc_time.sec)
SET_CLOCK_TIME(os.date("%H"), os.date("%M"), os.date("%S"))
WAIT(500) -- Example: wait 500 ms between ticks, adjust as needed, also for performance
end