eluna-scripts-ornfelt/lua/DinklePack_Lua/repair.lua
2024-09-23 07:59:23 +02:00

15 lines
427 B
Lua

local RepairAllModule = {}
RepairAllModule.cmd = "repairall"
function RepairAllModule.OnCommand(event, player, command)
if command == RepairAllModule.cmd then
if not player:IsInCombat() then
player:DurabilityRepairAll( false )
player:SendBroadcastMessage("Your equipment has been repaired.")
end
return false
end
end
RegisterPlayerEvent(42, RepairAllModule.OnCommand)