fix warp = nil

This commit is contained in:
Taavi
2023-06-21 19:20:13 +08:00
committed by GitHub
parent d96cb4c52c
commit c3dea9e80c
+1 -1
View File
@@ -632,7 +632,7 @@ ESX.RegisterServerCallback("esx:spawnVehicle", function(source,cb,vehData)
local ped = GetPlayerPed(sourcec)
ESX.OneSync.SpawnVehicle(vehData.model or `ADDER`, vehData.coords or GetEntityCoords(ped), vehData.coords.w or 0.0, vehData.props or {}, function(id)
local vehicle = NetworkGetEntityFromNetworkId(id)
if warp then
if vehData.warp then
local timeout = 0
while GetVehiclePedIsIn(ped) ~= vehicle and timeout <= 15 do
Wait(0)