diff --git a/server-data/resources/[esx_addons]/esx_joblisting/LICENSE b/server-data/resources/[bpt_addons]/bpt_joblisting/LICENSE similarity index 99% rename from server-data/resources/[esx_addons]/esx_joblisting/LICENSE rename to server-data/resources/[bpt_addons]/bpt_joblisting/LICENSE index 505256b55..2976ec793 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/LICENSE +++ b/server-data/resources/[bpt_addons]/bpt_joblisting/LICENSE @@ -631,8 +631,7 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - esx_joblisting - Copyright (C) 2015-2023 Jérémie N'gadi + bpt_joblisting Copyright (C) 2024 bitpredator 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 @@ -652,7 +651,7 @@ Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - esx_joblisting Copyright (C) 2015-2023 Jérémie N'gadi + bpt_joblisting Copyright (C) 2024 bitpredator This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. diff --git a/server-data/resources/[esx_addons]/esx_joblisting/README.md b/server-data/resources/[bpt_addons]/bpt_joblisting/README.md similarity index 92% rename from server-data/resources/[esx_addons]/esx_joblisting/README.md rename to server-data/resources/[bpt_addons]/bpt_joblisting/README.md index 2a5e6fc33..de3b4b22c 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/README.md +++ b/server-data/resources/[bpt_addons]/bpt_joblisting/README.md @@ -4,9 +4,9 @@ This Simple resource lets you finally contribute to Society and make a differenc ## Legal -esx_joblisting - virtual Job Center! +bpt_joblisting - virtual Job Center! -Copyright (C) 2015-2023 Jérémie N'gadi, ESX-Framework +Copyright (C) 2024 bitpredator 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/esx_joblisting.sql b/server-data/resources/[bpt_addons]/bpt_joblisting/bpt_joblisting.sql similarity index 100% rename from server-data/resources/[esx_addons]/esx_joblisting/esx_joblisting.sql rename to server-data/resources/[bpt_addons]/bpt_joblisting/bpt_joblisting.sql diff --git a/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/client/main.lua similarity index 95% rename from server-data/resources/[esx_addons]/esx_joblisting/client/main.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/client/main.lua index de37b63a9..0effd84d9 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/client/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_joblisting/client/main.lua @@ -2,7 +2,7 @@ local menuIsShowed, TextUIdrawing = false, false function ShowJobListingMenu() menuIsShowed = true - ESX.TriggerServerCallback("esx_joblisting:getJobsList", function(jobs) + ESX.TriggerServerCallback("bpt_joblisting:getJobsList", function(jobs) local elements = { { unselectable = "true", title = TranslateCap("job_center"), icon = "fas fa-briefcase" } } for i = 1, #jobs do @@ -10,7 +10,7 @@ function ShowJobListingMenu() end ESX.OpenContext("right", elements, function(menu, SelectJob) - TriggerServerEvent("esx_joblisting:setJob", SelectJob.name) + TriggerServerEvent("bpt_joblisting:setJob", SelectJob.name) ESX.CloseContext() ESX.ShowNotification(TranslateCap("new_job", SelectJob.title), "success") menuIsShowed = false diff --git a/server-data/resources/[esx_addons]/esx_joblisting/config.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/config.lua similarity index 100% rename from server-data/resources/[esx_addons]/esx_joblisting/config.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/config.lua diff --git a/server-data/resources/[esx_addons]/esx_joblisting/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/fxmanifest.lua similarity index 89% rename from server-data/resources/[esx_addons]/esx_joblisting/fxmanifest.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/fxmanifest.lua index 4923ba92e..4c2cf440e 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/fxmanifest.lua +++ b/server-data/resources/[bpt_addons]/bpt_joblisting/fxmanifest.lua @@ -3,8 +3,7 @@ game("gta5") description("Provides a way for players to select a job") lua54("yes") -version("1.0") -legacyversion("1.9.1") +version("1.0.2") shared_scripts({ "@es_extended/imports.lua", diff --git a/server-data/resources/[esx_addons]/esx_joblisting/locales/en.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/locales/en.lua similarity index 100% rename from server-data/resources/[esx_addons]/esx_joblisting/locales/en.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/locales/en.lua diff --git a/server-data/resources/[esx_addons]/esx_joblisting/locales/it.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/locales/it.lua similarity index 100% rename from server-data/resources/[esx_addons]/esx_joblisting/locales/it.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/locales/it.lua diff --git a/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua b/server-data/resources/[bpt_addons]/bpt_joblisting/server/main.lua similarity index 86% rename from server-data/resources/[esx_addons]/esx_joblisting/server/main.lua rename to server-data/resources/[bpt_addons]/bpt_joblisting/server/main.lua index b4822750f..50552687c 100644 --- a/server-data/resources/[esx_addons]/esx_joblisting/server/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_joblisting/server/main.lua @@ -9,7 +9,7 @@ function getJobs() return availableJobs end -ESX.RegisterServerCallback("esx_joblisting:getJobsList", function(source, cb) +ESX.RegisterServerCallback("bpt_joblisting:getJobsList", function(source, cb) local jobs = getJobs() cb(jobs) end) @@ -37,8 +37,8 @@ function IsNearCentre(player) return Close end -RegisterServerEvent("esx_joblisting:setJob") -AddEventHandler("esx_joblisting:setJob", function(job) +RegisterServerEvent("bpt_joblisting:setJob") +AddEventHandler("bpt_joblisting:setJob", function(job) local source = source local xPlayer = ESX.GetPlayerFromId(source) local jobs = getJobs() @@ -50,6 +50,6 @@ AddEventHandler("esx_joblisting:setJob", function(job) print("[^1ERROR^7] Tried Setting User ^5" .. source .. "^7 To Invalid Job - ^5" .. job .. "^7!") end else - print("[^3WARNING^7] User ^5" .. source .. "^7 Attempted to Exploit ^5`esx_joblisting:setJob`^7!") + print("[^3WARNING^7] User ^5" .. source .. "^7 Attempted to Exploit ^5`bpt_joblisting:setJob`^7!") end end)