Skip to content

Commit

Permalink
fix: bpt_doorlock patch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Mar 31, 2024
1 parent fd0c354 commit d942b97
Show file tree
Hide file tree
Showing 14 changed files with 262 additions and 496 deletions.
1 change: 0 additions & 1 deletion server-data/resources/[bpt_addons]/bpt_doorlock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ You are not authorized to sell this software (this is free project).
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


Port management resource, currently only compatible with es_extended & qb-core.
[latest release](https://github.com/bitpredator/bpt_doorlock/releases/latest/download/bpt_doorlock.zip)

Expand Down
16 changes: 8 additions & 8 deletions server-data/resources/[bpt_addons]/bpt_doorlock/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ 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 },
-- 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 },
-- 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"
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" }
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",
'lockpick'
}

---Play sounds using game audio (sound natives) instead of through NUI.
Config.NativeAudio = false
Config.NativeAudio = false
86 changes: 43 additions & 43 deletions server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
-- FX Information
fx_version("cerulean")
use_experimental_fxv2_oal("yes")
lua54("yes")
game("gta5")
fx_version 'cerulean'
use_experimental_fxv2_oal 'yes'
lua54 'yes'
game 'gta5'

-- Resource Information
name("bpt_doorlock")
version("1.0.2")
license("MIT")
author("bitpredator")
repository("https://github.com/bitpredator/bpt_doorlock")
name 'bpt_doorlock'
version '1.0.2'
license 'MIT'
author 'bitpredator'
repository 'https://github.com/bitpredator/bpt_doorlock'

-- Manifest
shared_script({
"@ox_lib/init.lua",
"config.lua",
})

client_script({
"client/main.lua",
"client/utils.lua",
})

server_script({
"@oxmysql/lib/MySQL.lua",
"server/convert.lua",
"server/framework/*.lua",
"server/main.lua",
})

ui_page("web/build/index.html")

files({
"web/build/index.html",
"web/build/**/*",
"locales/*.json",
"audio/data/bptdoorlock_sounds.dat54.rel",
"audio/dlc_bptdoorlock/bptdoorlock.awc",
})

data_file("AUDIO_WAVEPACK")("audio/dlc_bptdoorlock")
data_file("AUDIO_SOUNDDATA")("audio/data/bptdoorlock_sounds.dat")

dependencies({
"oxmysql",
"ox_lib",
})
shared_script {
'@ox_lib/init.lua',
'config.lua',
}

client_script {
'client/main.lua',
'client/utils.lua',
}

server_script {
'@oxmysql/lib/MySQL.lua',
'server/convert.lua',
'server/framework/*.lua',
'server/main.lua',
}

ui_page 'web/build/index.html'

files {
'web/build/index.html',
'web/build/**/*',
'locales/*.json',
'audio/data/bptdoorlock_sounds.dat54.rel',
'audio/dlc_bptdoorlock/bptdoorlock.awc',
}

data_file 'AUDIO_WAVEPACK' 'audio/dlc_bptdoorlock'
data_file 'AUDIO_SOUNDDATA' 'audio/data/bptdoorlock_sounds.dat'

dependencies {
'oxmysql',
'ox_lib'
}
34 changes: 17 additions & 17 deletions server-data/resources/[bpt_addons]/bpt_doorlock/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"unlocked_door": "Unlocked door",
"locked_door": "Locked door",
"lock_door": "[E] Lock door",
"unlock_door": "[E] Unlock door",
"door_lock": "Door lock",
"passcode": "Passcode",
"lockpick_broke": "Your lockpick broke",
"pick_lock": "Pick lock",
"add_lock": "Add doorlock",
"edit_lock": "Edit doorlock",
"remove_lock": "Remove doorlock",
"cannot_unlock": "Unable to unlock door",
"cannot_lock": "Unable to lock door",
"create_modify_lock": "Create a doorlock, or modify an existing one",
"add_door_textui": "**Create new door** \nInteract with [LMB] \nCancel with [RMB]",
"command_closest": "Open UI directly to closest doorlock"
}
"unlocked_door": "Unlocked door",
"locked_door": "Locked door",
"lock_door": "[E] Lock door",
"unlock_door": "[E] Unlock door",
"door_lock": "Door lock",
"passcode": "Passcode",
"lockpick_broke": "Your lockpick broke",
"pick_lock": "Pick lock",
"add_lock": "Add doorlock",
"edit_lock": "Edit doorlock",
"remove_lock": "Remove doorlock",
"cannot_unlock": "Unable to unlock door",
"cannot_lock": "Unable to lock door",
"create_modify_lock": "Create a doorlock, or modify an existing one",
"add_door_textui": "**Create new door** \nInteract with [LMB] \nCancel with [RMB]",
"command_closest": "Open UI directly to closest doorlock"
}
34 changes: 17 additions & 17 deletions server-data/resources/[bpt_addons]/bpt_doorlock/locales/it.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"unlocked_door": "Porta sbloccata",
"locked_door": "Porta chiusa",
"lock_door": "[E] Chiudi porta",
"unlock_door": "[E] Apri porta",
"door_lock": "Serratura della porta",
"passcode": "codice di accesso",
"lockpick_broke": "il tuo grimaldello si è rotto",
"pick_lock": "Scassina serratura",
"add_lock": "Aggiungi serratura",
"edit_lock": "Modifica serratura",
"remove_lock": "Rimuovi serratura",
"cannot_unlock": "Impossibile aprire la porta",
"cannot_lock": "Impossibile chiudere la porta",
"create_modify_lock": "Crea una serratura o modificane una esistente",
"add_door_textui": "**Crea una nuova porta** \nInteragire con [LMB] \nAnnulla con [RMB]",
"command_closest": "Apri l'interfaccia utente direttamente alla serratura più vicina"
}
"unlocked_door": "Porta sbloccata",
"locked_door": "Porta chiusa",
"lock_door": "[E] Chiudi porta",
"unlock_door": "[E] Apri porta",
"door_lock": "Serratura della porta",
"passcode": "codice di accesso",
"lockpick_broke": "il tuo grimaldello si è rotto",
"pick_lock": "Scassina serratura",
"add_lock": "Aggiungi serratura",
"edit_lock": "Modifica serratura",
"remove_lock": "Rimuovi serratura",
"cannot_unlock": "Impossibile aprire la porta",
"cannot_lock": "Impossibile chiudere la porta",
"create_modify_lock": "Crea una serratura o modificane una esistente",
"add_door_textui": "**Crea una nuova porta** \nInteragire con [LMB] \nAnnulla con [RMB]",
"command_closest": "Apri l'interfaccia utente direttamente alla serratura più vicina"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CREATE TABLE IF NOT EXISTS `bpt_doorlock` (
`id` int (11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`data` longtext NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE
IF NOT EXISTS `bpt_doorlock` (
`id` int (11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`data` longtext NOT NULL,
PRIMARY KEY (`id`)
)
;
Loading

0 comments on commit d942b97

Please sign in to comment.