Files
wnsrc/gamemodes/darkrp/plugins/writing/items/base/sh_writing.lua
lifestorm df294d03aa Upload
2024-08-04 23:54:45 +03:00

58 lines
1.2 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--[[
| 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/
--]]
local PLUGIN = PLUGIN
ITEM.name = "Writing Base"
ITEM.model = "models/error.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.identifier = "base"
ITEM.description = ""
ITEM.category = "Writing"
ITEM.bAllowMultiCharacterInteraction = true
function ITEM:GetName()
local title = self:GetData("title")
if title and title != "" then return title end
return self.name
end
function ITEM:GetDescription()
return "Okunabilir veya üzerine yazılabilir bir "..self.identifier
end
function ITEM:SetBodygroups(bodygroups)
self:SetData("bodygroups", bodygroups)
end
function ITEM:GetModelBodygroups()
return self:GetData("bodygroups") or ""
end
ITEM.functions.Write = {
name = "Oku/Yaz",
tip = "Oku ya da yaz.",
icon = "icon16/text_align_center.png",
OnRun = function(item)
local client = item.player
if !IsValid(client) then return false end
if (SERVER) then
PLUGIN:OpenWriting(client, item)
end
return false
end
}