İçerisine girilebilir bina vs. gibi yapıların kapılarına kilit ekleyebileceğiniz sistem
Kullanım
/doorlock yazarak erişebileceğiniz kapı ekleme ve düzenleme menüsü sayesinde kapı kontrolleri artık çok pratik.
ox_doorlock
---@type DoorlockConfig
---@diagnostic disable-next-line: missing-fields
Config = {}
---Trigger a notification on the client when the door state is successfully updated.
Config.Notify = false
---Create a persistent notification while in-range of a door, prompting to lock/unlock.
Config.DrawTextUI = false
---Set the properties used by [DrawSprite](https://docs.fivem.net/natives/?_0xE7FFAE5EBF23D890).
Config.DrawSprite = {
-- Unlocked
[0] = { 'obtaizen_ui', 'key', 0, 0, 0.021, 0.021, 0, 255, 255,255, 500 },
-- Locked
[1] = { 'obtaizen_ui', 'key_red', 0, 0, 0.021, 0.021, 0, 255, 255, 255, 500 },
}
---Allow the specified ace principal to use 'command.doorlock'.
Config.CommandPrincipal = 'group.admin'
---Allow players with the 'command.doorlock' principal to use any door.
Config.PlayerAceAuthorised = false
---The default skill check difficulty when lockpicking a door.
Config.LockDifficulty = { 'easy', 'easy', 'medium' }
---Allow lockpicks to be used to lock an unlocked door.
Config.CanPickUnlockedDoors = false
---An array of items that function as lockpicks.
Config.LockpickItems = {
'lockpick'
}
---Play sounds using game audio (sound natives) instead of through NUI.
Config.NativeAudio = true