Use new trigger, fixed urls in readme

This commit is contained in:
ElPumpo
2018-04-14 14:25:00 +02:00
parent 12e1963e99
commit be480476b1
2 changed files with 7 additions and 14 deletions
+5 -7
View File
@@ -1,27 +1,25 @@
# fxserver-esx_ambulancejob
FXServer ESX Ambulance Job
# esx_ambulancejob
[REQUIREMENTS]
* Auto mode
- esx_skin => https://github.com/FXServer-ESX/fxserver-esx_skin
- [esx_skin](https://github.com/ESX-Org/esx_skin)
* Player management (boss actions **There is no way to earn money for now**)
* esx_society => https://github.com/FXServer-ESX/fxserver-esx_society
- [esx_society](https://github.com/ESX-Org/esx_society)
[INSTALLATION]
1) CD in your resources/[esx] folder
2) Clone the repository
```
git clone https://github.com/FXServer-ESX/fxserver-esx_ambulancejob esx_ambulancejob
git clone [esx_ambulancejob](https://github.com/ESX-Org/esx_ambulancejob)
```
3) Import esx_ambulancejob.sql in your database
4) Add this in your server.cfg :
```
start baseevents
start esx_ambulancejob
```
5) * If you want player management you have to set Config.EnablePlayerManagement to true in config.lua
+2 -7
View File
@@ -58,7 +58,6 @@ AddEventHandler('esx_ambulancejob:heal', function(_type)
ESX.ShowNotification(_U('healed'))
end)
function StartRespawnToHospitalMenuTimer()
ESX.SetTimeout(Config.MenuRespawnToHospitalDelay, function()
if IsDead then
@@ -621,12 +620,8 @@ AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
end)
AddEventHandler('baseevents:onPlayerDied', function(killerType, coords)
OnPlayerDeath()
end)
AddEventHandler('baseevents:onPlayerKilled', function(killerId, data)
OnPlayerDeath()
AddEventHandler('esx:onPlayerDeath', function()
OnPlayerDeath()
end)
RegisterNetEvent('esx_ambulancejob:revive')