Restrict to levels
You can easily restrict keys, dongles and skins to levels if you use one of the supported level systems on your server.
Support for Sublime Levels - Vrondakis Level System - Elite XP System (EXP2) - Brick's Essentials - GlorifiedLeveling - Elixir XP and ELevels
All you need to do is add the Level variable to a key, dongle or skin. Here is an example:
Level = 50,
Here is a full example of a key that is restricted to level 50:
CH_Keys.Keys["door_key_2"] = {
Name = "Cruciform Door Key",
Price = 1000,
ViewModel = "models/craphead_scripts/adv_keys_2/c_key2.mdl",
WorldModel = "models/craphead_scripts/adv_keys_2/w_key2.mdl",
Type = "DoorKey",
DoorOnly = true,
Animations = {
Lock = ACT_VM_PRIMARYATTACK,
Unlock = ACT_VM_SECONDARYATTACK,
},
Sounds = {
DoorLock = "doors/door_latch1.wav",
DoorUnlock = "doors/door_latch3.wav",
CarLock = "doors/door_latch1.wav",
CarUnlock = "doors/door_latch3.wav",
},
Level = 50,
}
The same practice works for dongles and skins as well.