Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lint error for tackle.lua
Browse files Browse the repository at this point in the history
mafewtm committed Nov 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 30e061b commit cf0afde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tackle.lua
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ lib.addKeybind({
defaultKey = 'E',
onReleased = function(self)
if cache.vehicle then return end
if QBX.PlayerData.metadata.ishandcuffed then return end
if IsPedSprinting(cache.ped) or IsPedRunning(cache.ped) then
if QBX.PlayerData.metadata.ishandcuffed then return end
if IsPedSprinting(cache.ped) or IsPedRunning(cache.ped) then
local coords = GetEntityCoords(cache.ped)
local targetId, targetPed, _ = lib.getClosestPlayer(coords, 1.6, false)
if not targetPed then return end

0 comments on commit cf0afde

Please sign in to comment.