Files
wnsrc/gamemodes/darkrp/plugins/writing/items/base/sh_writing.lua
lifestorm 73479cff9e Upload
2024-08-04 22:55:00 +03:00

58 lines
1.1 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/
--]]
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 = "Imprimerie"
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 "Un support pour écrire / lire."
end
function ITEM:SetBodygroups(bodygroups)
self:SetData("bodygroups", bodygroups)
end
function ITEM:GetModelBodygroups()
return self:GetData("bodygroups") or ""
end
ITEM.functions.Write = {
name = "Lire / Ecrire",
tip = "Lire / Ecrire ceci.",
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
}