From 36549a6cc92b11fea919671a0b2f38d9f8a42508 Mon Sep 17 00:00:00 2001 From: Zerio Date: Sat, 25 May 2024 21:14:44 +0000 Subject: [PATCH] fix: `value assigned to variable 'turnSpeed' is unused` --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index 3224b0d..5530d82 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -59,7 +59,7 @@ function QBCore.Functions.LookAtEntity(entity, timeout, speed) local dx = targetPos.x - playerPos.x local dy = targetPos.y - playerPos.y local targetHeading = GetHeadingFromVector_2d(dx, dy) - local turnSpeed = nil + local turnSpeed local startTimeout = GetGameTimer() while true do local currentHeading = GetEntityHeading(ped)