mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Improvements to README, minor stuff
This commit is contained in:
@@ -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
@@ -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
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user