mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Add Job Whitelist
Credits "Jager Bom"
This commit is contained in:
@@ -3,7 +3,7 @@ TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
|||||||
|
|
||||||
ESX.RegisterServerCallback('esx_joblisting:getJobsList', function(source, cb)
|
ESX.RegisterServerCallback('esx_joblisting:getJobsList', function(source, cb)
|
||||||
MySQL.Async.fetchAll(
|
MySQL.Async.fetchAll(
|
||||||
'SELECT * FROM jobs',
|
'SELECT * FROM jobs WHERE whitelisted = false',
|
||||||
{},
|
{},
|
||||||
function(result)
|
function(result)
|
||||||
local data = {}
|
local data = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user