qbcore-framework / qb-ambulancejob

Ambulance Job, Hospital System & Death System For QB-Core :man_health_worker: :woman_health_worker:
GNU General Public License v3.0
33 stars 285 forks source link

[BUG] Stuck in bed #244

Closed FrequencyRoleplay closed 1 year ago

FrequencyRoleplay commented 2 years ago

Ive tried a few different updates. Ive experienced this a few times and have a good amount of reports.

when a player spawning in hospital bed, they hold E to get out of bed. The player gets stuck in that location and cant run around except for a have small radius. sometimes you can get back into bed and revive again to fix. Or head pop.

I hope im not the first to report this as ive been looking for a way to fix this.,

FrequencyRoleplay commented 2 years ago

i believe this has fixed the problem.



                bedCombo:onPlayerInOut(function(isPointInside)
                if isPointInside and not isInHospitalBed then
                inBed = true
                exports['qb-core']:DrawText(Lang:t('text.lie_bed'), 'left')
                CheckInControls("beds")
                else
                inBed = false
                listen = false
                exports['qb-core']:HideText()
                end```
Smitthyy commented 1 year ago

Where did you put this snippet to fix it mate? I have the same issue at the moment

FrequencyRoleplay commented 1 year ago

ambulance job, i think client. just search for the bedcombo

i-kulgu commented 1 year ago

Tested with the latest version and it's not an issue anymore.