mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
28
gamemodes/darkrp/plugins/goi_factory/items/sh_datadisc.lua
Normal file
28
gamemodes/darkrp/plugins/goi_factory/items/sh_datadisc.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Disque de données"
|
||||
ITEM.model = "models/willardnetworks/gearsofindustry/wn_data_card.mdl"
|
||||
ITEM.category = "Combine"
|
||||
ITEM.description = "Un petit et fin disque métallique utilisé pour stocker des données."
|
||||
|
||||
function ITEM:GetSkin()
|
||||
return self:GetData("item") and 0 or 1
|
||||
end
|
||||
|
||||
function ITEM:PopulateTooltip(tooltip)
|
||||
local item = self:GetData("item")
|
||||
|
||||
local itemPnl = tooltip:AddRow("item")
|
||||
itemPnl:SetBackgroundColor(derma.GetColor(item and "Info" or "Error", tooltip))
|
||||
itemPnl:SetText(item and ix.item.list[item] and "Article encodé: " .. ix.item.list[item].name or "Aucune donnée encodée sur le disque")
|
||||
itemPnl:SizeToContents()
|
||||
end
|
||||
Reference in New Issue
Block a user