Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cata-a1138 committed Sep 27, 2024
2 parents cde019c + 1b5462a commit 62604fd
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 112 deletions.
5 changes: 3 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ local function useClosestDoor()
end
end

exports('useClosestDoor', useClosestDoor)

CreateThread(function()
local lockDoor = locale('lock_door')
local unlockDoor = locale('unlock_door')
Expand Down Expand Up @@ -357,3 +355,6 @@ RegisterNUICallback('loadLocale', function(_, cb)
data = json.decode(JSON)
})
end)

exports('useClosestDoor', useClosestDoor)
exports('getClosestDoor', function() return ClosestDoor end)
11 changes: 0 additions & 11 deletions client/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,6 @@ CreateThread(function()
ox = true,
exp = exports.ox_target
}
elseif GetResourceState('qb-target'):find('start') then
target = {
qb = true,
exp = exports['qb-target']
}
elseif GetResourceState('qtarget'):find('start') then
target = {
qt = true,
Expand Down Expand Up @@ -309,8 +304,6 @@ CreateThread(function()

if target.qt then
target.exp:Object({ options = options })
elseif target.qb then
target.exp:AddGlobalObject({ options = options })
end

options = { locale('pick_lock') }
Expand All @@ -320,10 +313,6 @@ CreateThread(function()
if target.qt then
return target.exp:RemoveObject(options)
end

if target.qb then
return target.exp:RemoveGlobalObject(options)
end
end
end)
end
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ game 'gta5'

--[[ Resource Information ]]--
name 'ox_doorlock'
version '1.17.0'
version '1.18.0'
license 'GPL-3.0-or-later'
author 'Overextended'
repository 'https://github.com/overextended/ox_doorlock'
Expand Down
97 changes: 0 additions & 97 deletions server/framework/qb-core.lua

This file was deleted.

14 changes: 14 additions & 0 deletions server/framework/qbx_core.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local QBX = exports.qbx_core

function GetPlayer(playerId)
local player = { source = playerId }
return player
end

function GetCharacterId(player)
return QBX:GetPlayer(player.source).PlayerData.citizenid
end

function IsPlayerInGroup(player, filter)
return QBX:HasGroup(player.source, filter)
end
2 changes: 1 addition & 1 deletion server/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function utils.getFilesInDirectory(path, pattern)
return files, fileCount
end

local frameworks = { 'es_extended', 'ND_Core', 'ox_core', 'qb-core' }
local frameworks = { 'es_extended', 'ND_Core', 'ox_core', 'qbx_core' }
local sucess = false

for i = 1, #frameworks do
Expand Down

0 comments on commit 62604fd

Please sign in to comment.