mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 02:01:33 +00:00
fix: value assigned to variable 'turnSpeed' is unused
This commit is contained in:
@@ -59,7 +59,7 @@ function QBCore.Functions.LookAtEntity(entity, timeout, speed)
|
|||||||
local dx = targetPos.x - playerPos.x
|
local dx = targetPos.x - playerPos.x
|
||||||
local dy = targetPos.y - playerPos.y
|
local dy = targetPos.y - playerPos.y
|
||||||
local targetHeading = GetHeadingFromVector_2d(dx, dy)
|
local targetHeading = GetHeadingFromVector_2d(dx, dy)
|
||||||
local turnSpeed = nil
|
local turnSpeed
|
||||||
local startTimeout = GetGameTimer()
|
local startTimeout = GetGameTimer()
|
||||||
while true do
|
while true do
|
||||||
local currentHeading = GetEntityHeading(ped)
|
local currentHeading = GetEntityHeading(ped)
|
||||||
|
|||||||
Reference in New Issue
Block a user