Garry's Mod

Garry's Mod

429 ratings
SCP Inventory Keycard Version
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Scenic
File Size
Posted
Updated
10.579 MB
19 Feb, 2018 @ 8:19am
22 Mar, 2018 @ 7:24am
7 Change Notes ( view )

Subscribe to download
SCP Inventory Keycard Version

Description
This addon is not compatible with any addon who monopolize the PlayerUse hook
Rework of the addon : SCP - Inventory system & SCP 1123
Press C to open your inventory ( if toogle )
This new version allow you to use level keycard on door.

How to apply level restriction on button or door :
- Give you the weapon : "KeyCard Editor"
- Aim to a button or a door ( depend on what open the door )*
- Right click to select a level ( 0 to 5 ) ( set 0 to remove restriction )
- Left click to apply the settings
- When you have set all the door level , write /scpsavekeycard in the chat or SCPSavekeycardlevel in console

+ When you have the weapon in hand you can see all door which have level restriction
+ <B>mean this is a button
+ <D> mean this is a door
+ Reload to remove noises

* = Some SCP Map, only the button can open door , so you need to restrict the acces of the button but not the door.

Chat command :
"/openscpinv" : to open the inventory.
"/drophazmat" : to drop the hazmat
"/scpsavekeycard" : to save all keycard restriction (Admin only)

Console command :
"SCPInventory_ContextMenu" : toogle the inventory on the context menu ( 0 = disable , 1 = enable )
"SCPOpeninventory" : to open the inventory
"SCPSavekeycardlevel" : save all keycard restriction (Admin only)
"SCPLoadkeycardlevel" : load all keycard restriction (Admin only)
"SCPResetkeycardlevel" : reset all keycard restriction (Admin only)
"SCPDropHazmat" : to drop the hazmat

Incompatible with :
- Playable Piano ( return true on playerUse hook )
- Realistic Handcuffs [www.gmodstore.com]

Update ( 19/02/18, 21:30 )
- Fix some error relative to keycard editor - Add lua function for loadout spawn
TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = "models/player/monk.mdl", description = [[A Gun Dealer is the only person who can sell guns to other people. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]], weapons = {}, command = "gundealer", max = 2, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false, category = "Citizens", PlayerSpawn = function(ply) if ( SERVER ) then ply:CreateSCPInventory() ply:SCP_Inventory_GiveLoadout( "ent_fak", "ent_hazmat_suit", "card_lvl_4" ) end end })
* Use ply:CreateSCPInventory() to clear the inventory * Use ply:SCP_Inventory_GiveLoadout( ... ) to give items * All entities key are their classname * Carefull PlayerSpawn hook can't be called if value norespawn is set to false ( because you don't respawn )

Update ( 20/02/18, 07:30 )
Fixed lua font error

Update ( 20/02/18, 22:40 )
Fixed lua error

Update ( 22/02/18, 07:50)
Fix lua error about using keycard Added debug mod ( SCPInventory_debug 1 ) to enable it

Update ( 22/02/18, 09:10)
Allow you to add restriction on prop_dynamic Some SCP Door are prop_dynamic

Update ( 22/03/18, 15:20)
Added all console command to server side CleanUp restore door level now


This addon has been tested only on rp_area14_v2
Report any lua error thank
Popular Discussions View All (13)
10
10 Oct, 2024 @ 6:48pm
why do i not get stuff in my inventory
Tank Enjoyer
7
19 Sep, 2021 @ 6:47am
How do I change the keybinding for card inventory?
GenericUser Bmr
3
6 May, 2020 @ 2:37pm
Inventory Glitch
ScarletKing
251 Comments
Loopers 10 Sep, 2024 @ 4:32pm 
"Press C to open your inventory ( if toogle )"

toogle
Loopers 10 Sep, 2024 @ 4:31pm 
heya. is there a way to access the context menu with this mod enabled?
codyjheath2022 31 Jul, 2023 @ 9:26am 
Just type this " SCPInventory_ContextMenu 0" instead of this "SCPInventory_ContextMenu 1"
jlswagcool778 14 Jul, 2023 @ 2:08am 
I don't recommend this mod. Takes over Context menu which removes essential access that is apart of Gmod.
NNinja1255 2 Feb, 2023 @ 2:37pm 
@Jaldo In the desc: "SCPInventory_ContextMenu" : toogle the inventory on the context menu ( 0 = disable , 1 = enable )
Jaksn 25 Jan, 2023 @ 5:07pm 
don't download, it overrides your context menu
shrekboss95 27 Jul, 2022 @ 4:24pm 
this makes no sense
Jeff91 13 Jun, 2022 @ 9:59am 
There is a way to drop a player inventory on death?
Bad Goose 12 Feb, 2022 @ 9:39pm 
wonderful ^_^
Jack 8 Jan, 2022 @ 5:29am 
what does the document do