Skip to content

refactor(character): Use tutorial natives instead of manual bucket setting#480

Merged
Manason merged 3 commits into
mainfrom
tutorial-natives
Nov 1, 2024
Merged

refactor(character): Use tutorial natives instead of manual bucket setting#480
Manason merged 3 commits into
mainfrom
tutorial-natives

Conversation

@solareon

@solareon solareon commented Jun 5, 2024

Copy link
Copy Markdown
Contributor

Description

Routing buckets may overlap. The natives do a better job of hiding the characters. This is similar to #473 but moves the tutorial end to the QBCore:Client:OnPlayerLoaded event to end the tutorial session with the appropriate native.

Additionally it only calls the tutorial session start one time if somehow the choosecharacter() function got called twice without being disabled cause who knows if that works right.

NOTE: I have NOT tested this. Do not merge without extensive testing in a multiplayer environment.

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

@Manason Manason left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking on testing to be confirmed (in a multi-client environment)

@mafewtm

mafewtm commented Nov 1, 2024

Copy link
Copy Markdown
Contributor

Tested by @D4isDAVID and appears to work as expected

@mafewtm mafewtm requested a review from Manason November 1, 2024 00:53
@Manason Manason merged commit ec41343 into main Nov 1, 2024
@Manason Manason deleted the tutorial-natives branch November 1, 2024 15:07
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.

4 participants