Files
wnsrc/gamemodes/darkrp/plugins/descriptionitems/cl_hooks.lua

24 lines
628 B
Lua
Raw Normal View History

2024-08-04 22:55:00 +03:00
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
function PLUGIN:PopulateCharacterInfo(client, character, tooltip)
local visibileItems = client:GetNetVar("visibleItems", {})
for itemName, _ in pairs(visibileItems) do
itemName = L(itemName)
local row = tooltip:AddRow("visibileItem_" .. itemName)
row:SetBackgroundColor(color_white)
row:SetText("Il porte : " .. itemName .. ".")
row:SizeToContents()
end
end