Skip to content
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

fix(citizen-scripting-core): fixed ClearTimeout after Wait #3260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yanislgha
Copy link

Goal of this PR

A ClearTimeout() in another thread or after a wait() has no effect, and the SetTimeout continues to execute.

How is this PR achieving the goal

I basically wrote a function to remove a bookmark directly in the ScriptHost.cpp to manage bookmarks between threads, etc.

This PR applies to the following area(s)

FiveM, RedM, Server, ScRT: Lua

Successfully tested on

Game builds: v3258

Platforms: Windows, Linux

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

fixes #3259

@github-actions github-actions bot added RedM Issues/PRs related to RedM ScRT: Lua Issues/PRs related to the Lua scripting runtime invalid Requires changes before it's considered valid and can be (re)triaged labels Mar 18, 2025
@github-actions github-actions bot added triage Needs a preliminary assessment to determine the urgency and required action and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RedM Issues/PRs related to RedM ScRT: Lua Issues/PRs related to the Lua scripting runtime triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Citizen.ClearTimeout does not work
1 participant