Qbox-project / qbx_core

http://qbox-project.github.io
Other
45 stars 109 forks source link

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

Open solareon opened 4 weeks ago

solareon commented 4 weeks ago

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