mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
Use new trigger, fixed urls in readme
This commit is contained in:
@@ -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
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user