Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(client): Add Status when firing bug
this version is more optimized when carrying a weapon too.
  • Loading branch information
renzuzu committed Jul 27, 2021
1 parent 5200b92 commit 1af2715
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions renzu_hud/client/function.lua
Expand Up @@ -2823,9 +2823,9 @@ function Hud:WeaponStatus()
if self.invehicle then
break
end
while IsPedShooting(self.ped) do
print("firing")
sleep = 5
while IsPedShooting(self.ped) or IsPlayerFreeAiming(self.pid) do
--print("firing")
sleep = 100
--print("self.shooting")
self.shooting = true
if config.enablestatus and config.killing_affect_status then
Expand Down
6 changes: 3 additions & 3 deletions renzu_hud/config.lua
Expand Up @@ -174,16 +174,16 @@ config.driving_status_radius = 200 -- driving distance to add status
config.firing_affect_status = true -- Firing Weapons affects status?
config.firing_affected_status = 'sanity' -- Affected Status during gunplay
config.firing_status_mode = 'add' -- Status Function (add,remove) add will add a value to status, remove will remove a status value.
config.firing_statusaddval = 500 -- value to add when firing a weapons
config.firing_statusaddval = 5000 -- value to add when firing a weapons
config.firing_bullets = 100 -- number of bullets or firing events to trigger the status function.
config.killing_affect_status = true -- do you want the status to be affected when you kill some player , ped, animals.
config.killing_affected_status = 'sanity'
config.killing_status_mode = 'add' -- (add,remove) add will add a value to status, remove will remove a status value.
config.killing_status_val = 100 -- status value to add/remove per kill
config.killing_status_val = 5000 -- status value to add/remove per kill
config.running_affect_status = true -- if player is running (not sprint) status will affected?
config.running_affected_status = 'thirst' -- change this to whatever status you wanted to be affected
config.running_status_mode = 'remove' -- should add or remove? its up to you. affected status if running
config.running_status_val = 1000 -- how much we add / remove to the status?
config.running_status_val = 100 -- how much we add / remove to the status?
config.melee_combat_affect_status = true -- melee attack like punch,kick,pistolwhiping,etc can affect the status?
config.melee_combat_affected_status = 'sanity' -- type of status
config.melee_combat_status_mode = 'remove' -- status remove or add?
Expand Down

0 comments on commit 1af2715

Please sign in to comment.