Files
wnsrc/gamemodes/darkrp/plugins/willardskills/items/tools/sh_tool_toolkit.lua
lifestorm 6a58f406b1 Upload
2024-08-04 23:54:45 +03:00

56 lines
1.3 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/
--]]
ITEM.uniqueID = "tool_toolkit"
ITEM.name = "Araç Kiti"
ITEM.description = "Eşyaları birleştirmek için çeşitli inşaat aletleri içeren küçük bir metal sandık."
ITEM.category = "Tools"
ITEM.model = "models/willardnetworks/skills/toolkit.mdl"
ITEM.maxDurability = 24
ITEM.width = 2
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(-200, 0, 0),
ang = Angle(-1.45, -0.07, 0),
fov = 7.71
}
ITEM.holdData = {
vectorOffset = {
right = 1,
up = -10,
forward = 2
},
angleOffset = {
right = 90,
up = -15,
forward = 90
},
}
ITEM.functions.RepairObject = {
name = "Repair Object",
icon = "icon16/wrench.png",
OnRun = function(itemTable)
local client = itemTable.player
local ent = client:GetEyeTraceNoCursor().Entity
ix.malfunctions:Fix(ent, client)
return false
end,
OnCanRun = function(itemTable)
local client = itemTable.player
local ent = client:GetEyeTraceNoCursor().Entity
return ent:IsValid() and ent.canMalfunction and ent:GetNetVar("isBroken", false)
end
}