Skip to content

Commit

Permalink
fix(client): notify can not perform (#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
CeebDev committed May 12, 2024
1 parent 31561b3 commit 1436f7d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -651,15 +651,13 @@ local function useSlot(slot, noAnim)
lib.notify({ id = 'component_invalid', type = 'error', description = locale('component_invalid', label) })
elseif data.allowArmed then
useItem(data)
else
return lib.notify({ id = 'cannot_perform', type = 'error', description = locale('cannot_perform') })
end
elseif not data.ammo and not data.component then
useItem(data)
end
end

if currentWeapon then
return lib.notify({ id = 'cannot_perform', type = 'error', description = locale('cannot_perform') })
end
end
end
exports('useSlot', useSlot)

Expand Down

0 comments on commit 1436f7d

Please sign in to comment.