Skip to content

Commit

Permalink
Merge pull request #1284 from esx-framework/revert-1281-patch-1
Browse files Browse the repository at this point in the history
Revert "Added ESX.DeleteJob for Runtime"
  • Loading branch information
Arctos2win authored Jan 14, 2024
2 parents 3b13fe2 + 4c60fc9 commit e0e60d6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions [core]/es_extended/server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e0e60d6

Please sign in to comment.