context implementation, replace whole

This commit is contained in:
Taavi
2022-11-30 20:29:16 +08:00
committed by GitHub
parent e3671ef0ce
commit 77863a229b
@@ -264,19 +264,6 @@ function OpenShopMenu(elements, restoreCoords, shopCoords)
end)
end
WaitForVehicleToLoad(elements[1].model)
ESX.Game.SpawnLocalVehicle(elements[1].model, shopCoords, 0.0, function(vehicle)
table.insert(spawnedVehicles, vehicle)
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
FreezeEntityPosition(vehicle, true)
SetModelAsNoLongerNeeded(elements[1].model)
if elements[1].props then
ESX.Game.SetVehicleProperties(vehicle, elements[1].props)
end
end)
end
CreateThread(function()
while true do
sleep = 1500