Skip to content

Commit

Permalink
fix lint error shadowing upvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
IIYAMA12 committed Jul 13, 2024
1 parent 9fd7ae4 commit 54a5703
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions [gameplay]/freeroam/fr_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ function giveMeWeapon(weapon, amount)
setControlState(player, "fire", false)
toggleControl(player, "fire", false)
reloadPedWeapon(player)
sawnoffAntiAbuse[player] = setTimer(function(player)
if not player then return end
toggleControl(player, "fire", true)
sawnoffAntiAbuse[player] = nil
sawnoffAntiAbuse[player] = setTimer(function(thePlayer)
if not isElement(thePlayer) then return end
toggleControl(thePlayer, "fire", true)
sawnoffAntiAbuse[thePlayer] = nil
end, 3000, 1, player)
end
end
Expand Down

0 comments on commit 54a5703

Please sign in to comment.