Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
QB testing
Browse files Browse the repository at this point in the history
Added qb support, dont use it, its experimental and in testing
  • Loading branch information
1OSaft authored Apr 16, 2024
1 parent 3981655 commit 7a3e157
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ESX = exports["es_extended"]:getSharedObject()

Config = {}
CreateThread(function()
TriggerEvent('unr3al_methlab:client:getConfig')
Expand Down
2 changes: 0 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {'es_extended', 'ox_lib', 'oxmysql', 'bob74_ipl'}

server_scripts {
'@oxmysql/lib/MySQL.lua',
'@es_extended/imports.lua',
'@ox_lib/init.lua',
'config.lua',
'config.target.lua',
Expand All @@ -20,7 +19,6 @@ server_scripts {
}

client_scripts {
'@es_extended/imports.lua',
'@ox_lib/init.lua',
-- 'client/client.lua',
-- 'client/marker.lua',
Expand Down
6 changes: 6 additions & 0 deletions server/server.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
currentlab = {}
player = nil

if Config.Framework == 'ESX' then
ESX = exports["es_extended"]:getSharedObject()
else
QBCore = exports['qb-core']:GetCoreObject()
end

function player(src)
if Config.Framework == 'ESX' then
return ESX.GetPlayerFromId(src)
Expand Down

0 comments on commit 7a3e157

Please sign in to comment.