Improvements to README, minor stuff

This commit is contained in:
ElPumpo
2018-04-30 16:36:43 +02:00
parent d2daf7909f
commit e34490d58a
5 changed files with 51 additions and 17 deletions
+36
View File
@@ -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/.
+2 -2
View File
@@ -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'
}
@@ -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
+1 -1
View File
@@ -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}