mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
57
gamemodes/darkrp/plugins/writing/items/base/sh_writing.lua
Normal file
57
gamemodes/darkrp/plugins/writing/items/base/sh_writing.lua
Normal file
@@ -0,0 +1,57 @@
|
||||
--[[
|
||||
| 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
|
||||
}
|
||||
Reference in New Issue
Block a user