qbcore-framework / qb-ambulancejob Goto Github PK
View Code? Open in Web Editor NEWAmbulance Job, Hospital System & Death System For QB-Core :man_health_worker: :woman_health_worker:
License: GNU General Public License v3.0
Ambulance Job, Hospital System & Death System For QB-Core :man_health_worker: :woman_health_worker:
License: GNU General Public License v3.0
When a person is injured on the ground, if you hit him, he can stand up and if he reacts quickly and clicks to hit, he can start fighting while being injured. more details https://streamable.com/u8yih7
hi im new to coding but have been trying to add another checking and beds for a hospital in paletto and cant figure it out
Can't see the on/off duty point.
Using all original config settings.
Is your feature request related to a problem? Please describe.
Hi I want to change the Hosptial Locations to another MLO but when i change the coordinates nothing is happening and the script is broke
Describe the feature you'd like
I would like to have a clear Documentation about how to change Locations, Menu Locations Spawns etc.
Describe alternatives you've considered
A good method should be an commented Config File that we can change completly and doesnt break up the script
Hello, I have configured everything and looked at the code and realized that the marker for the Ambulance Jobs Garage does not appear at the locations you specify. I was wondering what might be wrong with the code.
Describe the bug
If you die by normal means or by slaying yourself while your in a car it waits till your not moving anymore then teleports you to the place you initially died at
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to not teleport on death being dead on where your character traveled
Video
Questions (please complete the following information):
qb-
to something custom? [no]Additional context
Add any other context about the problem here.
Describe the bug
I put the new function TriggerServerEvent('hospital:server:ambulanceAlert', 'Citizen Down') in the dead.lua at line 29. It notifies when a player goes down and is bleeding out, but it also notifies every time someone logs in and spawns into the server. It should only notify when a player is downed.
To Reproduce
Steps to reproduce the behavior:
put TriggerServerEvent('hospital:server:ambulanceAlert', 'Citizen Down') in dead.lua at line 29
have player login
get death notification
Expected behavior
This should only notify when a player is downed and not when they login
Screenshots
If applicable, add screenshots to help explain your problem.
Questions (please complete the following information):
Last updated: This morning (10/20/21)
Additional context
I've tried the line in both the dead.lua and the laststand.lua in several places. It was suggested through support that line 29 in dead.lua would be the best place to put it.
i add a pilbox script to the framework and the default doors are still there and are preventing anyone for doing the job and healing players, how do i fix this?
Bandage doesnt heal injuries.
When changing the Config.Deathtime no matter what value I put it stays at 400 seconds for me
I feel like I'm not changing the right thing so if so please correct me aha
Would removing laststand.lua remove the laststand option all together. I cannot seem to be able to grab the correct information for my webhook in the laststands..
This is the result i receive. https://i.imgur.com/hq3Q3xM.png
this is the line i use: TriggerServerEvent("sl-log:server:CreateLog", "death", GetPlayerName(player) .. " ("..GetPlayerServerId(player)..") is in laststand", "red", "**".. killerName .. "** has killed ".. GetPlayerName(player) .." with **".. weaponLabel .. "** (" .. weaponName .. ")")
what am i doing wrong?
When you crush someone with the vehicle, it throws wrong, also when you kill someone, it logs in the 2nd animation, I would be happy if you fix this.
Is your feature request related to a problem? Please describe.
While dead you can use voicechat, radio, commands, emotes
Describe the feature you'd like
Blacklist all of these interactions, or at least if you are truly dead, and not in the Last Stand / Bleed out stage. You can call 911, speak, use emotes or at least the hotkeys for hands up, and point. If you are lying on the floor dead or/and during Bleedout, Talk, Sets of commands (do not disable the chat because /do commands are important during death), emotes must be disabled.
Describe alternatives you've considered
A dead person musn't use these functions. However in the bleedout stage maybe it should be allowed. It makes sense, because you are not dead and not unconscious.
Additional context
Add any other context or screenshots about the feature request here.
F8 Error
-Snip-
1 - Car Log Bug
System not sending notifications when crushing another player
2 - Death Log
It sends the system message to be sent from the 1st animation only after the player enters the 2nd animation, it must be sent in the first animation.
3 - Fall Log
When a player falls from a height, it throws a vague system message or does not throw at all.
Make ambulance vehicles configurable by grade.
Make ambulance vehicles purchasable by ambulance job and storable in normal qb-garage garages
found bug in check in not sure it is right to put this here
script error: @qb-ambulancejob/client/job.lua245: attempt to compare nil whit number
OnDeath (@qb-ambulancejob/client/dead.lua:164)
ref (@gb-ambulancejob/client/main.lua:426)
ref (@qb-core/client/functions.lua:8)
fn (@gb-ambulancejob/client/main.lua:420)
Ambulance Emergency button Alert not working. also doesn't show any blip on map , same as police job both are not working
How can I disable the animation of the stretcher to reappear? I want you to respawn from a
Is your feature request related to a problem? Please describe.
Enhancement idea, the job really doesnt make a lot of fun atm, cause some things aren't quite well done.
-You can't put people in the vehicle, when they're not dead or cuffed.
-Strecher is a mess with doors.
-People go into revive state, when they lay on the bed, would be better, if thats not the case for rp and they dont have to use a animation themselves.
-animations could be better, for the work menu escort isnt the best for a medic, make it over the shoulder like kidnap.
-when you play the whole job for rp so without everything automatic, it's just a bit bad if not really bad, to put it that way.
Describe the feature you'd like
Making this script better for real roleplay. Its a really important feature on any good server and it makes no fun to play this job.
Additional context
Many people voiced their opinion on my server, sometimes it just doesnt work. It's not really consistent.
Is your feature request related to a problem? Please describe.
--> If someone is handcuffed, and they die, they would still have handcuffs on upon respawning at the hospital.
Describe the feature you'd like
--> I believe that if someone dies with handcuffs on, upon respawning at the hospital, the handcuffs should be automatically removed. I know EMS or police can uncuff, however, if there is no one on duty, then the player is running around with handcuffs on.
Describe alternatives you've considered
I also thought about a criminal getting away with handcuffs and dies. However, this would be a sticky discussion
Additional context
--> None, but I can take a clip if neccessary!
The words are all
disappear and appear
ambulance garage
and the bed
Everything has interest draw3dtext
Replace or add firstaid kit to the Ambulance job shop.
there is no clothing to get uniform
sorry for this
Markers do not appear after the device by the doctor
Reproduce
Steps to reproduce the behavior:
Set myself up a doctor job (/setjob [id] ambulance 2)
Installed hospital interior
I went to the places where the markers should be
Examined the code and suggested that the problem is in the new method isLoggedIn = LocalPlayer.state['isLoggedIn']
Questions (please fill in the following information):
When was the last time you updated: just before you tried
Are you using a custom resource? what?: no, fresh install
Have you renamed qb- to something custom?: No
When the npc comes near the dead person, it does not turn around on its own and enter the phone animation.
rename this folder to qb-emsjob
Best for job title
qb-ambulancejob/client/job => closeMenuFull() error 362
desactive dead animations
Tried to spawn a streatcher but got this error. No error in F8 console
https://cdn.discordapp.com/attachments/878163001205747713/878173924649762816/unknown.png
It says I'm not near an ambulance (just took one out and tested it from the F1 - Jobs
Describe the bug
Enabling godmode through the qb-adminmenu doesn't prevent bleedout from the pq-ambulancejob script.
To Reproduce
Steps to reproduce the behavior:
With admin permissions>
/admin in console>admin options>godmode
Get into a vehicle and slam into something as fast as you can. You will be forced into the bleedout animation and still be able to die.
Expected behavior
Invincibility should negate all damage
Screenshots
If applicable, add screenshots to help explain your problem.
Questions (please complete the following information):
qb-
to something custom? NoAdditional context
I would like to know the solution as I'm a new game developer and new server dev if possible!
code so the name of the hospital is written in config.lua it makes it easier to change the name, for people who do not have the great knowledge in coding, not everyone uses the pillbox hospital .. possibly. think in lanes where you make .loacl file so all labels can be corrected in one place to also make it easier to work with for end user when it comes to updates.
I myself do not use pillbox hospital as we on our server want something different
Hows it going, are you able to configure the checkin's into 2 different places please
["checking"] = vector4(308.19, -595.35, 43.29, 0.0),
I tried configuring it myself, but with how the code is written out, when I put more than 1 location, then the checkin just stops working over all. Are you able to configure it so we can have 2 checkings (like 1 at pillbox and 1 in sandy shores?)
I appreciate the help!
if onDuty then
DrawText3D(v.x, v.y, v.z, "~g~E~w~ - Go on duty")
else
DrawText3D(v.x, v.y, v.z, "~r~E~w~ - Go off duty")
end
Is your feature request related to a problem? Please describe.
Unable to attach Stretcher to the Ambulance vehicle.
Describe the feature you'd like
Would be great if you could write a script that allows the stretcher to put into the vehicle. Or if it is already implemented, currently it doesen't work!
Thank you for your hard work!
Describe the bug
When a player is shot and killed, then taken to PillBox hospital him or her would become glitched in God Mode.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
This bug I am not 100% certain is 100% persistent or if it's just a random every so often issue, but we've experienced this a few times thus far and wanted to make sure it was just reported.
Screenshots
https://clips.twitch.tv/OptimisticAntsyPterodactylPeanutButterJellyTime-P5Pj4tyTNHoqiURF
^ Twitch Clip - Guy with Black Cowboy Hat with Red Undershirt was just recently killed, brought to Hospital, Revived at the station, upon revival he then walked out. The rival person arrived at PIllbox then initiated gunfire, he would not die while being shot in the head. Admins arrived on the scene tried to gun him down he would not die. Unless we killed him via the Admin Menu and then Revived him he would then die.
Questions (please complete the following information):
Additional context
We do not have anything custom wise done to this build that would interfere with Hospital Operations, we've updated QB-AmbulanceJob to more Recent with iFaks implementation.
It could be really nice if you moved blips into the config file. so they are generated in the same way as in policejob it makes it easier if one like me has set up server to have 3-4 places people can get to the hospital.
it is a correction that I myself make every time an update comes to the job. but I have to enter client / main.lua myself. if it was in config it would just make the work of updating to new version much easier.
/mikkelmus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.