fix: wearing amputation in MP 42.13

This commit is contained in:
ZioPao
2026-01-27 23:01:56 +01:00
parent df9f559078
commit e129b325e4
4 changed files with 17 additions and 8 deletions

View File

@@ -46,6 +46,17 @@ function ClientRelayCommands.ReceiveApplyFromServer()
end
--* RELOAD MODEL *--
function ClientRelayCommands.ReceiveReloadModel(args)
local texId = args.texId
local itemName = args.itemName
TOC_DEBUG.print("Resetting visuals locally for item " .. itemName .. " with texId " .. tostring(texId))
local clothingItem = getPlayer():getInventory():FindAndReturn(itemName)
getPlayer():setWornItem(clothingItem:getBodyLocation(), clothingItem)
end
--* TRIGGERED BY ADMINS *--
function ClientRelayCommands.ReceiveExecuteInitialization()