Garry's Mod

Garry's Mod

436 betyg
SCP Inventory Keycard Version
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Scenic
Filstorlek
Lades upp
Uppdaterades
10.579 MB
19 feb, 2018 @ 8:19
22 mar, 2018 @ 7:24
7 ändringsnotiser ( visa )

Abonnera för att ladda ner
SCP Inventory Keycard Version

Beskrivning
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
Populära diskussioner Visa alla (13)
10
10 okt, 2024 @ 18:48
why do i not get stuff in my inventory
Tank Enjoyer
7
19 sep, 2021 @ 6:47
How do I change the keybinding for card inventory?
GenericUser Bmr
3
6 maj, 2020 @ 14:37
Inventory Glitch
ScarletKing
251 kommentarer
Loopers 10 sep, 2024 @ 16:32 
"Press C to open your inventory ( if toogle )"

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