Making instance

Hi
I have some problem with some custom property shells. i will link a video that explains it all .

https://streamable.com/4ckm6a

and i wondering if i need to do something whit the shell or how to make an instance like esx_property.
And yes i use ESX

maybe give some help on making how i use routbucketing. that is maybe better ???

https://cookbook.fivem.net/2020/11/27/routing-buckets-split-game-state/

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

Thats true. im gonna try that

What version of vSync ? i can not se a “toggle” command