diff --git a/server-data/resources/[esx_addons]/esx_joblisting/README.md b/server-data/resources/[esx_addons]/esx_joblisting/README.md index a8e4cfd5f..623cca3a9 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/README.md +++ b/server-data/resources/[esx_addons]/esx_joblisting/README.md @@ -1,12 +1,10 @@ -
Discord - Website - Documentation - This Simple resource lets you finally contribute to Society and make a difference in the Word! How? it adds an amazing Menu where you can pick what you want to be in life - want to be a police officier? No-problem! Or maybe you want to stalk people and be a creepy reporter? We got you covered! ## Legal esx_joblisting - virtual Job Center! -Copyright (C) 2015-2022 Jérémie N'gadi, ESX-Framework +Copyright (C) 2015-2023 Jérémie N'gadi, ESX-Framework This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version. diff --git a/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua b/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua index 5e958e133..01a8729e7 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua +++ b/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua @@ -9,7 +9,7 @@ function ShowJobListingMenu() elements[#elements + 1] = {title = jobs[i].label, name = jobs[i].name} end - ESX.OpenContext("right", elements, function(menu, SelectJob) + ESX.OpenContext("right", elements, function(_, SelectJob) TriggerServerEvent('esx_joblisting:setJob', SelectJob.name) ESX.CloseContext() ESX.ShowNotification(_U('new_job', SelectJob.title), "success") diff --git a/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua b/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua index 7be7b151b..c0cddab49 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua +++ b/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua @@ -44,4 +44,4 @@ AddEventHandler('esx_joblisting:setJob', function(job) print("[^1ERROR^7] Tried Setting User ^5".. source .. "^7 To Invalid Job - ^5"..job .."^7!") end end -end) +end) \ No newline at end of file