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

Client Crash #5

Open
duncosta opened this issue Jan 18, 2022 · 3 comments
Open

Client Crash #5

duncosta opened this issue Jan 18, 2022 · 3 comments

Comments

@duncosta
Copy link

Screenshot_1

@Datsun-Drift
Copy link

Same issue, same error code.

@Datsun-Drift
Copy link

Screenshot_1

After a lot of testing, I have found the reason for this error.
This is caused from using the incorrect index for the CreateMissionTrain native.
Supported indexes for freight are 1-24, metro is 25.
If you make your own trains.xml, the indexes will continue from 26 and up.

@JayPaulinCodes
Copy link

My solution was to call the load trains outside of a thread and prior to any thread, I also swapped it to be the code from the fivem docs and it worked without crashing my game :)

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

No branches or pull requests

3 participants