You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
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.
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: