From b3387952c3e9573e455fbe8b2b41f3f6a1286b29 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:57:08 +0200 Subject: [PATCH] Change functions to accept vector4 --- client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 4273d0e..5b04a88 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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)