From e63d9f744db3dd240fc715049faff943269892ed Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Sun, 13 Mar 2022 20:44:17 +0100 Subject: [PATCH] fix(client/functions): undefined variable --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index d4abdd8..16e1430 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -402,7 +402,7 @@ function QBCore.Functions.SpawnClear(coords, radius) if coords then coords = type(coords) == 'table' and vec3(coords.x, coords.y, coords.z) or coords else - coords = GetEntityCoords(ped) + coords = GetEntityCoords(PlayerPedId()) end local vehicles = GetGamePool('CVehicle') local closeVeh = {}