Add files via upload

This commit is contained in:
Dinkledork
2023-03-03 16:34:18 -07:00
committed by GitHub
parent 36942f9202
commit 9fc55f4488
27 changed files with 497 additions and 44 deletions

20
Startstop.lua Normal file
View File

@@ -0,0 +1,20 @@
--DO NOT DELETE ME! FIXES AN ANNOYING AF BUG
local holidayEventIds = {17, 91}
local function OnPlayerLogin(event, player)
if not player:IsInWorld() then
return
end
for _, eventId in ipairs(holidayEventIds) do
local isHolidayActive = IsGameEventActive(eventId)
if isHolidayActive then
StopGameEvent(eventId)
StartGameEvent(eventId)
end
end
end
RegisterPlayerEvent(3, OnPlayerLogin)