If you don’t want to mess with instancing, you can just override the time to 23 to prevent the sun from bleeding in. Because there’s no sun, the interior will be quite dark, so add a timecycle modifier to brighten the interior up.
if enteredShell then
ClearOverrideWeather()
ClearWeatherTypePersist()
SetWeatherTypePersist('CLEAR')
SetWeatherTypeNow('CLEAR')
SetWeatherTypeNowPersist('CLEAR')
NetworkOverrideClockTime(23, 0, 0)
SetTimecycleModifier('INT_mall')
else
NetworkClearClockTimeOverride()
ClearTimecycleModifier()
end
If you’re using vSync
if enteredShell then
TriggerEvent('vSync:toggle', false)
ClearOverrideWeather()
ClearWeatherTypePersist()
SetWeatherTypePersist('CLEAR')
SetWeatherTypeNow('CLEAR')
SetWeatherTypeNowPersist('CLEAR')
NetworkOverrideClockTime(23, 0, 0)
SetTimecycleModifier('INT_mall')
else
TriggerEvent('vSync:toggle', true)
TriggerServerEvent('vSync:requestSync')
ClearTimecycleModifier()
end
1 Like