remove stupid vars

can be reverted if better with vars, imo its uglier with vars
This commit is contained in:
Taavi
2023-06-21 19:15:09 +08:00
committed by GitHub
parent 369971387b
commit f7ec2e5b7c
+1 -6
View File
@@ -631,12 +631,7 @@ end)
ESX.RegisterServerCallback("esx:spawnVehicle", function(source,cb,vehData)
local ped = GetPlayerPed(sourcec)
local vehicle = nil
local model = vehData.model or `ADDER`
local coords = vehData.coords or GetEntityCoords(ped)
local heading = coords.w or 0.0
local warp = vehData.warp
local props = vehData.props or {}
ESX.OneSync.SpawnVehicle(model, coords, heading, props, function(id)
ESX.OneSync.SpawnVehicle(vehData.model or `ADDER`, vehData.coords or GetEntityCoords(ped), vehData.coords.w or 0.0, vehData.props or {}, function(id)
vehicle = NetworkGetEntityFromNetworkId(id)
if warp then
local timeout = 0