Revert "Added ESX.DeleteJob for Runtime"

This commit is contained in:
Arctos2win
2024-01-14 17:14:12 +01:00
committed by GitHub
parent 3b13fe2482
commit 4c60fc9b02
-11
View File
@@ -417,17 +417,6 @@ function ESX.CreateJob(name, label, grades)
ESX.Jobs[name] = job
end
--- Delete Job at Runtime
function ESX.DeleteJob(name)
--- @param name string
if not name then
return print('[^3WARNING^7] missing argument `name(string)` while deleting a job')
end
MySQL.update('DELETE FROM jobs WHERE name = ?', {name})
MySQL.update('DELETE FROM job_grades WHERE job_name = ?', {name})
ESX.Jobs[name] = nil
end
function ESX.RefreshJobs()
local Jobs = {}
local jobs = MySQL.query.await('SELECT * FROM jobs')