mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
36 lines
1.0 KiB
Lua
36 lines
1.0 KiB
Lua
--[[
|
|
| 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.uniqueID = "languagebox_portuguese"
|
|
ITEM.name = "Portuguese Audiobook Box"
|
|
ITEM.description = "A box containing a full set of Audiobooks. How convenient."
|
|
ITEM.category = "Audiobook Boxes"
|
|
ITEM.model = "models/items/item_item_crate.mdl"
|
|
ITEM.width = 2
|
|
ITEM.height = 2
|
|
|
|
ITEM.functions.Convert = {
|
|
name = "Convert",
|
|
icon = "icon16/wrench.png",
|
|
OnRun = function(item)
|
|
local client = item.player
|
|
local inventory = client:GetCharacter():GetInventory()
|
|
|
|
inventory:Add("audiobook_1Portuguese", 1)
|
|
inventory:Add("audiobook_2Portuguese", 1)
|
|
inventory:Add("audiobook_3Portuguese", 1)
|
|
inventory:Add("audiobook_4Portuguese", 1)
|
|
inventory:Add("audiobook_5Portuguese", 1)
|
|
|
|
client:Notify("You have converted the " .. item.name .. " into its relevant Audiobook set.")
|
|
end
|
|
}
|