Skip to content

Commit

Permalink
Update client.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
rdopaa authored May 25, 2024
1 parent f1fcbf5 commit 3397abe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RegisterCommand(Config.Command, function()
local closestPlayerPed = GetPlayerPed(closestPlayer)
local closestPlayerHasHandsUp = IsEntityPlayingAnim(closestPlayerPed, "random@mugging3", "handsup_standing_base", 3)
LoadAnimDict("mini@repair")
if closestPlayerHasHandsUp or IsPlayerDead(closestPlayer) then
if (closestPlayerHasHandsUp and (Config.StealMode == "HandsUp" or Config.StealMode == "Both")) or (IsPlayerDead(closestPlayer) and (Config.StealMode == "Dead" or Config.StealMode == "Both")) then
if Config.CommandChat then
ExecuteCommand(Config.CommandText)
end
Expand Down Expand Up @@ -61,4 +61,3 @@ function openNearbyInventory(closestPlayer)
end

RegisterKeyMapping(Config.Command, 'Robar a un jugador cercano', 'keyboard', 'X') -- CONFIG Command

0 comments on commit 3397abe

Please sign in to comment.