:wave: Hi,

Thank you for your answer and your explanations.
I make a different script from Trainsportation

Here is what I did:

-- for load model
function loadModel(name)
    local limitWaitForLoad = 0
    local nameHash = GetHashKey(name)
    RequestModel(nameHash)
    while (not HasModelLoaded(nameHash)) do
        RequestModel(nameHash)
        Citizen.Wait(50)
    end
end

-- for spawn train
-- Location are correct, direction too, the IDModel i test with 1 to 23
CreateMissionTrain(Config.IDModel, Config.LocationSpawn[1], Config.LocationSpawn[2], Config.LocationSpawn[3], Config.DirectionTrain)

and for the name (each of them are called) :
{“freight”, “freightcar”, “freightcont2”, “freightcont1”, “freightgrain”, “tankercar”, “freighttrailer”, “tgv01”, “tgv02”, “tgv03”, “tgv04”, “tgv05”, “tgv06”, “tgv07”, “tgv08”, “tgv09”}

:point_right: I manage to load in memory all the tgv01, 02…
But, every time the train appears in a different size, it doesn’t have any part of the TGV, not even a car, still the basic GTA train.

and here is the trains.xml an traintracks.xml :
trains.xml (46.4 KB)
traintracks.xml (2.7 KB)