Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants