The reason you had to change “arg1” to “args” is because you use a version of nh-context in which the script was not made for.
You making a menu instead of using commands is a personal choice. When I made this, people requested them to be commands instead of a menu. As not everyone likes clicking through menus.
People standing when being sent to the bed has not been reported in anyone elses issues.
The rest of that stuff also seems to be personal choice, minus the vehicle thing which is fairly simple to do, and I should of provided for sure.
It’s as simple as if DoesEntityExist(emsVeh) then
print(‘You cannot take out another car’)
else
do the spawning stuff
end.
But thanks for your comment anyway, and sorry you were dissatisfied with some things.
Got ya so if this replaces ambulance job some of my scripts uses ambulance job revive event so that will need to be replaced with whatever revive event you offer?
Yeah, you should just be able to change them over to this scripts revive.
@Airbourne I had two people working on converting to qbcore but nothing yet so I guess I’ll try someone else or even offer to pay someone to convert or learn qb stuff myself. Sorry.
Few issues unfortunately after picking up the script this morning:
it’s not an esx_ambulancejob replacement in the purest sense. It sets up as gl-ambulance so even base events like esx_ambulancejob:revive will need repointing (assuming the parameters are even the same).
The nh-context source code linked in the description is not the required one as it’s newer and has breaking changes. There is no sendMenu event anymore (now createMenu with a new parameter set) so the menus don’t work out-of-the-box without a change of existing code or replacing a server’s nh-context updated version with the older one provided. This needs to be significantly CLEARER in the description, especially for a 30d old script.
It doesn’t use the keymaster package system, so had to go grab it from email which isn’t bad, but everyone uses the package system now and it makes things easily organized.
It is what it says it is, looks pretty good but I’ll likely need to put in far more effort to get it working on my up-to-date server than I figure I should for $20.
Personally, I’d appreciate a nh-context v2 version as a must and it’d be nice to have one that didn’t require the bt-target but that’s not a showstopper.
Sorry, I havn’t had a chance to sit down and code all last month, this month I’m finally back into it. The QB Version was just finished, maybe I’ll work on the drawtext soon™
please add config for adding more hospitals. Most servers have more than one hospital now. Also would be cool if you could you could make it to where if you die you respawn at the nearest hospital.