CityRP Documentation Repository

core.plugins.unisec-keypads.sh_init

Unisec Keypads

Functions

Sharedusec.InBounds(mx, my, x1, y1, w, h) → booleanSource ☍

Parameters

  • mxany
  • myany
  • x1any
  • y1any
  • wany
  • hany

Returns

  1. boolean
Sharedusec.IsPW(pw) → booleanSource ☍

Parameters

  • pwany

Returns

  1. boolean
Sharedusec.RandomPW()Source ☍

Tables

Sharedusec.Config.LimitsSource ☍

The following is a list of limits for each usergroup. You can add your own usergroups. For example, you can set ["donator"] = 10 and all groups ABOVE that on the chain will get 10.

Sharedusec.Config.PermissionsSource ☍

These permissions follow the inheritance chain. Just replace the quoted text with the lowest usergroup you want to have permission. If you don't want anyone to have permission, use a non-existant usergroup, such as "disallowed".

Fields

Sharedprevent.Wire_TriggerOutputSource ☍
SharedusecSource ☍
Sharedusec.ConfigSource ☍
Sharedusec.Config.AllowPasscodeSource ☍

Whether to require passcodes on doors for unauthorized users.

Sharedusec.Config.AlwaysShowCableSource ☍

Whether to show cables between fading doors and keypads

Sharedusec.Config.CrackerBlipEnabledSource ☍

Whether to make the keypad cracker blip occasionally and loudly while cracking.

Sharedusec.Config.CrackerBlipIntervalSource ☍

How often to blip, if enabled.

Sharedusec.Config.CrackerBlipVolumeSource ☍

How loudly to blip, if enabled. 75 is quiet, 100 is loud.

Sharedusec.Config.CrackerSlotSource ☍

Which weapon slot to put the keypad cracker in.

Sharedusec.Config.CrackerTimeoutSource ☍

How long after cracking a keypad that it can be cracked instantly again. 0 to disable.

Sharedusec.Config.LimitFailMessageSource ☍

The message to display when a limit is reached. %s is replaced with "Keypad" or "Door" depending on which limit is hit.

Sharedusec.Config.LockpickAllowedSource ☍

Whether players can lockpick fading doors directly.

Sharedusec.Config.MaxLogsSource ☍

How many usage logs to keep per keypad before old ones get tossed out.

Sharedusec.Config.NoStuckSource ☍

Flickering doors are a feature, not a bug. You can disable them here. Whether to flicker and buzz if there is something in the way of the door.

Sharedusec.Config.NoStuckAttemptsSource ☍

How many times to flicker and try to close.

Sharedusec.Config.NoStuckIntervalSource ☍

How many seconds between flickers.

Sharedusec.Config.NoStuckSoundSource ☍

Sound played when flickering.

Sharedusec.Config.ShowCableInAdminCrackerSource ☍

Whether to show cables between fading doors and keypads while holding the ADMIN keypad cracker.

Sharedusec.Config.ShowCableInCrackerSource ☍

Whether to show cables between fading doors and keypads while holding the keypad cracker.

Sharedusec.Config.ShowCursorSource ☍

Whether to show the cursor when the number pad is visible.

Sharedusec.Config.ToolCategorySource ☍

The category of the tool in the spawnmenu

Sharedusec.Config.ToolNameSource ☍

The name of the tool

Sharedusec.Config.ToolNameCopierSource ☍
Sharedusec.Config.UseDelaySource ☍

How long the "Access Granted" message is visible and the keypad is unusable on a non-timed keypad.

Sharedusec.Config.UseWorkshopSource ☍

If true, players will download the materials for this script from the workshop. False will be fastdl.