forked from overextended/ox_doorlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
38 lines (28 loc) · 1.22 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---@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] = { 'mpsafecracking', 'lock_open', 0, 0, 0.018, 0.018, 0, 255, 255, 255, 100 },
-- Locked
[1] = { 'mpsafecracking', 'lock_closed', 0, 0, 0.018, 0.018, 0, 255, 255, 255, 100 },
}
---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