This commit is contained in:
lifestorm
2024-08-04 23:12:27 +03:00
parent 0e770b2b49
commit ba1fc01b16
7084 changed files with 2173495 additions and 14 deletions

View File

@@ -0,0 +1,39 @@
--[[
| 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
PLUGIN.name = "Suitcase"
PLUGIN.description = "Adds a wearable suitcase"
PLUGIN.author = "Exobit"
function PLUGIN:PlayerLoadedCharacter(client, character)
local characterInv = character:GetInventory()
local suitcase = characterInv:HasItem("suitcase")
if suitcase then
suitcase:SetData("equip", false)
end
end
function PLUGIN:DoPlayerDeath(client, attacker, damageinfo)
local character = client:GetCharacter()
if (!character) then return end
local inventory = character:GetInventory()
if (character and inventory) then
if inventory:HasItem("suitcase") then
local item = inventory:HasItem("suitcase")
item:SetData("equip", false)
item.player = client
item.functions.EquipUn.OnRun(item)
item.player = nil
end
end
end