Fixed vehicles randomly spawning

This commit is contained in:
ElPumpo
2018-04-30 15:37:28 +02:00
parent 180a127352
commit 4dcaf6b9ba
+1
View File
@@ -20,6 +20,7 @@ local InsideInstance = false
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end