mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 17:01:16 +00:00
Change functions to accept vector4
This commit is contained in:
@@ -45,7 +45,7 @@ QBCore.Functions.GetCoords = function(entity)
|
||||
x = coords.x,
|
||||
y = coords.y,
|
||||
z = coords.z,
|
||||
a = heading
|
||||
w = heading
|
||||
}
|
||||
end
|
||||
|
||||
@@ -59,7 +59,7 @@ QBCore.Functions.SpawnVehicle = function(model, cb, coords, isnetworked)
|
||||
Citizen.Wait(10)
|
||||
end
|
||||
|
||||
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.a, isnetworked, false)
|
||||
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, isnetworked, false)
|
||||
local netid = NetworkGetNetworkIdFromEntity(veh)
|
||||
|
||||
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
|
||||
|
||||
Reference in New Issue
Block a user