From 4cf4030ad3e48df721a824e2c7f20c9ecbb7cfad Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Sat, 12 Mar 2022 12:26:42 +0100 Subject: [PATCH] fix(client/functions): undefined variable Co-authored-by: ItsANoBrainer --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index 19f99ba..d4abdd8 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -868,7 +868,7 @@ function QBCore.Functions.StartParticleAtCoord(dict, ptName, looped, coords, rot 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 QBCore.Functions.LoadParticleDictionary(dict) UseParticleFxAssetNextCall(dict)