Skip to content

fix: make conditional loop based on local isDead variable#105

Open
Zykem wants to merge 1 commit intodevfrom
fix-ambulance-race-condition
Open

fix: make conditional loop based on local isDead variable#105
Zykem wants to merge 1 commit intodevfrom
fix-ambulance-race-condition

Conversation

@Zykem
Copy link
Contributor

@Zykem Zykem commented Feb 14, 2026

Description

Fixes the race condition in ambulance job. es_extended is setting ESX.PlayerData.dead in the same event. No waiting at all causes the conditional loop to not even start because ESX.PlayerData.dead is still false.


Motivation

Improving ESX


Implementation Details

Replacing the condition with a new one. (Existing local isDead variable)


Usage Example

-- Add example usage here

PR Checklist

  • My commit messages and PR title follow the Conventional Commits standard.
  • My changes have been tested locally and function as expected.
  • My PR does not introduce any breaking changes.
  • I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

@CLAassistant
Copy link

CLAassistant commented Feb 14, 2026

CLA assistant check
All committers have signed the CLA.

@Zykem Zykem changed the base branch from main to dev February 14, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants