diff --git a/README.md b/README.md index 916dcf00..ec1b6e26 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,40 @@ Simple job listing script, you can specify what jobs you want to be whitelisted. ### Update If you have an outdated version of ES Extended, you might need to run the following on your SQL server: + `ALTER TABLE jobs add whitelisted BOOLEAN NOT NULL DEFAULT FALSE;` + +## Download & Installation + +### Using [fvm](https://github.com/qlaffont/fvm-installer) +``` +fvm install --save --folder=esx esx-org/esx_joblisting +``` + +### Using Git +``` +cd resources +git clone https://github.com/ESX-Org/esx_joblisting [esx]/esx_joblisting +``` + +### Manually +- Download https://github.com/ESX-Org/esx_joblisting/archive/master.zip +- Put it in the `[esx]` directory + +- Add this in your `server.cfg`: + +``` +start esx_joblisting +``` + +# Legal +### License +esx_joblisting - job listing script + +Copyright (C) 2015-2018 Jérémie N'gadi + +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. + +This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details. + +You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/. diff --git a/__resource.lua b/__resource.lua index ad917bb0..08b13f3b 100644 --- a/__resource.lua +++ b/__resource.lua @@ -14,7 +14,7 @@ server_scripts { 'locales/fr.lua', 'locales/es.lua', 'locales/sv.lua', - 'server/esx_joblisting_sv.lua' + 'server/main.lua' } client_scripts { @@ -26,5 +26,5 @@ client_scripts { 'locales/fr.lua', 'locales/es.lua', 'locales/sv.lua', - 'client/esx_joblisting_cl.lua' + 'client/main.lua' } diff --git a/client/esx_joblisting_cl.lua b/client/main.lua similarity index 89% rename from client/esx_joblisting_cl.lua rename to client/main.lua index c294fcd1..2506b8c2 100644 --- a/client/esx_joblisting_cl.lua +++ b/client/main.lua @@ -29,20 +29,18 @@ function ShowJobListingMenu(data) ESX.UI.Menu.CloseAll() ESX.UI.Menu.Open( - 'default', GetCurrentResourceName(), 'joblisting', - { - title = _U('job_center'), - elements = elements - }, - function(data, menu) - TriggerServerEvent('esx_joblisting:setJob', data.current.value) - ESX.ShowNotification(_U('new_job')) - menu.close() - end, - function(data, menu) - menu.close() - end - ) + 'default', GetCurrentResourceName(), 'joblisting', + { + title = _U('job_center'), + align = 'top-left', + elements = elements + }, function(data, menu) + TriggerServerEvent('esx_joblisting:setJob', data.current.value) + ESX.ShowNotification(_U('new_job')) + menu.close() + end, function(data, menu) + menu.close() + end) end) end diff --git a/config.lua b/config.lua index 8648b3db..83c8435e 100644 --- a/config.lua +++ b/config.lua @@ -3,7 +3,7 @@ Config.DrawDistance = 100.0 Config.ZoneSize = {x = 3.0, y = 3.0, z = 2.0} Config.MarkerColor = {r = 100, g = 100, b = 204} Config.MarkerType = 1 -Config.Locale = 'fr' +Config.Locale = 'en' Config.Zones = { {x = -265.036, y = -963.630, z = 30.223} diff --git a/server/esx_joblisting_sv.lua b/server/main.lua similarity index 100% rename from server/esx_joblisting_sv.lua rename to server/main.lua