-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add better multiple hospital support + some refactors #299
Add better multiple hospital support + some refactors #299
Conversation
@BackSH00TER Could you please add it so it will check which hospital you're closest too and spawn you there instead of pillbox? Also I noticed when you set checkin locations, you have to also ensure the "Location" for each hospital is the same vector? otherwise it won't let you checkin? |
This PR has had 60 days of inactivity & will close within 7 days |
This PR has had 60 days of inactivity & will close within 7 days |
Commenting to remove staleness. Can someone from QB team comment whether or not this is something you would want to merge in? If yes, I'll update and fix the merge conflicts, if no, then lets just close this out |
I have try it on my server, its working smoothly, thanks bro! |
I can say this is something that would be awesome to see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect i dont see any problem
@GhzGarage I would appreciate if you could take a look at this if you have a chance. I'm more than happy to update and fix the merge conflicts if this is something you would actually want merged. |
I'd say do the updates anyways man, did you add the hospital distance
checking too determine where too spawn?
…On Mon, 22 Jan 2024, 6:50 pm BackSH00TER, ***@***.***> wrote:
Commenting to remove staleness. Can someone from QB team comment whether
or not this is something you would want to merge in? If yes, I'll update
and fix the merge conflicts, if no, then lets just close this out
@GhzGarage <https://github.com/GhzGarage> I would appreciate if you could
take a look at this if you have a chance. I'm more than happy to update and
fix the merge conflicts if this is something you would actually want merged.
—
Reply to this email directly, view it on GitHub
<#299 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGHUHNO23BATD7WZ7UP7YTYPX43VAVCNFSM6AAAAAAYOJWEHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTGMYDOMRQHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked it again, and not error, I see no problem in the code.
Is a error in testing?
I'm not going to waste my time continually updating and fixing merge conflicts just for the PR to sit unacknowledged for another 7+ months. If I get the green light from somebody who is actually on the QB team and has merge permissions, then I will be more than happy to update it. |
Welcome to qbcore lol
…On Tue, 23 Jan 2024, 4:32 pm BackSH00TER, ***@***.***> wrote:
I'd say do the updates anyways man, did you add the hospital distance
checking too determine where too spawn?
I'm not going to waste my time continually updating and fixing merge
conflicts just for the PR to sit unacknowledged for another 7+ months.
If I get the green light from somebody who is actually on the QB team and
has merge permissions, then I will be more than happy to update it.
—
Reply to this email directly, view it on GitHub
<#299 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGHUHPAGTH5YSZ3NFJLASTYP4VOVAVCNFSM6AAAAAAYOJWEHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGIZTGNZUGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
+1 |
PLZ Merge !! |
i have pushed this to be merged! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready to be merged
@SinisterDevelopment See if you can make a new PR on this without conflicts |
i might have a copy of it without conflicts. just gotta delete my m-Insurance integration and reset config if you want it |
@GhzGarage I can update this tonight |
Merge conflicts are fixed. This is ready to go again |
@GhzGarage @SinisterDevelopment this PR is ready to go. Please approve so this PR can be merged. Thank you. |
Describe Pull request
The main purpose of this PR is to tweak the existing implementations to make it easier to add support for multiple hospitals and clean up the logic surrounding this. It also cleans up a lot of the logic with regards to finding a free bed at the hospital.
Config.Locations
to add each hospital location and its corresponding bed locationsGetAvailableBed
andSetClosestBed
with a newer functiongetClosestAvailableBed
that takes the index of the hospital you are at to reduce the number of loops that are needed.hospitalIndex
to select the correct bed at that hospital locationTested:
Example showing checkin + sit on bed
https://clipchamp.com/watch/DL7ruUxMQpD