-Allows users to play as the EMS or Medics on your server
-Revive function available
-Vehicle spawn for Ambulance and Helicopter
-Vehicle storing for Ambulance and Helicopter
-Changing room to change from civilian clothes to EMS outfit.
-French (fr), English (en), and Portugese (br) translations available (configurable in the config.lua file)
Great script, I like it better then most ems systems out there. I do have 1 issue, maybe you can help me resolve this. When ever anyone re spawns either through waiting it out, or being revived, or using the quick revive option they get kicked out of their session to the point of a black screen with the gta buffering logo on the bottom right corner of the screen.
This only happens with this specific event of any esx scripts i have on the server.
Thanks for letting me know the link is dead. I’ve updated the link! If you’re having lots of issues head on in there and users will likely be able to help assist.
@Voorhees_Jason I haven’t heard of this, best bet is to utilize the Discord link as well and maybe see if anyone else is having this issue and walk you through it.
yea I am still getting expired link. With the ambulance thing soon as someone dies and tries to revive I go to a blank black screen with a little buffering animation in the bottom right. This normally means that I am kicked into a single session. It has to do with your blackout/loading code you have in the script.
I tested the server without this script and everything is fine. It is only with the ambulance script. Not sure where else even to look in order to fix this.
The link works, just checked it. You were in the Discord even but I believe you got banned by a mod for posting where you shouldn’t have been or by spamming channels. Just double checked that even, you were 100% banned from Discord for spamming.
I was asking for help for like over 6 hours i would ask one time every hour or so no one would help I was not spamming i was having a discussion with someone and got banned in middle of it
I am telling you tho that there is something you may have done with your server differently but, with mines your script is the only one that does the kick out of death sort of speak. I cannot find anything on where the issue is. Everything else on esx works perfectly just the ambulance is the one script doing this.
I even left baseevents on and turned your script off and base works fine but soon as your script is turned on and someone dies they get the black screen with the little loading thing on the bottom right.
I can take screen shots if you like. I verified that it was not just my fivem acting up as everyone that comes on my server, I had them die just to see and they get the same results. If you like you can come on my server real quick to show you.
Nobody using ambulancejob with it setup properly is experiencing this. You may want to double check all your stuff and maybe try a fresh install of ambulancejob and check your sql files to make sure you’re 100% setup correctly. I’ve been running this plugin since ESX went public and have not had this issue unless I or someone on my team broke something with the plugin.
I double checked everything and I know about the sql stuff with esx plugins and everything else is on the script works perfectly even removing items and money. So the database stuff is working fine. If you come on the fivem discord we can chat for a min since I cannot come on the esx discord.
I guess you are not the only one. Same happens to me. All other scripts working just fine. I was reading about system/spawnmanager older version, but that didn’'t help either.
Reinstalled fivem server and all sql - same result. After death black screen loop and also after revive.
If you look at my copy and paste, it shows i start baseevents. Also there is some limited revive you can do without baseevents and it still gives the black screen issues. The problem is within the ambulance script itself.
This script is the only thing that is hindering a server from going on is because of this one bug because it is not happening to you does not mean there is not a bug in your script and the fact that someone else came up and said there was the same issue with his as well. Maybe we can look at your code together and figure out where the issue is?
I narrowed it down. I am still not sure what the cause but I did confirmed it is not a database issue. It is not the job itself. It is not the death timer or anything like that. It is just the respawn part. When you die and right before you respawn to the medical center it gets stuck in a loading loop.
RegisterNetEvent('esx_ambulancejob:revive')
AddEventHandler('esx_ambulancejob:revive', function()
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
Citizen.CreateThread(function()
DoScreenFadeOut(800)
while not IsScreenFadedOut() do
Citizen.Wait(0)
end
ESX.SetPlayerData('lastPosition', {
x = coords.x,
y = coords.y,
z = coords.z
})
TriggerServerEvent('esx:updateLastPosition', {
x = coords.x,
y = coords.y,
z = coords.z
})
RespawnPed(playerPed, {
x = coords.x,
y = coords.y,
z = coords.z
})
StopScreenEffect('DeathFailOut')
DoScreenFadeIn(800)
end)
end)