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

33 lines
1.0 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.name = "Çiğ Tavuk"
ITEM.description = "Uzak diyarlarda kolektifleştirilmiş, kötü koşullarda ve fabrikalarda et üretmek için kurulmuş bir endüstri."
ITEM.category = "Ingredient"
ITEM.width = 1
ITEM.height = 1
ITEM.model = "models/willardnetworks/food/meat3.mdl"
ITEM.colorAppendix = {["blue"] = "Çiğ Tavuğu Takas becerisiyle (gıda malzemesi izni gerektirir) veya bir dükkandan edinin."}
ITEM.hunger = 20
ITEM.functions.Consume = {
icon = "icon16/user.png",
OnRun = function(item)
local client = item.player
local character = item.player:GetCharacter()
character:SetHunger(math.Clamp(character:GetHunger() - (client:Team() == FACTION_BIRD and item.hunger * 2 or item.hunger), 0, 100))
end,
OnCanRun = function(item)
return ix.faction.Get(item.player:Team()).canEatRaw
end
}