Trains · Base game
Freight Train
Spawn name

Identifiers
- Display name
- Freight Train
- Spawn name
- Hash
- Int32 hash
- Hex hash
- Class
- Trains
- Type
- Train
- DLC
- Base game
- DLC pack
- Seats
- 4
Handling
- Top speed (handling)
- 106 km/h · 66 mph
- Drive
- RWD
- Gears
- 4
- Mass
- 25,084 kg
Spawn the Freight Train in FiveM
local model = `freightcont2` -- 0x0E512E79
RequestModel(model)
while not HasModelLoaded(model) do Wait(0) end
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local vehicle = CreateVehicle(model, coords.x, coords.y, coords.z, GetEntityHeading(ped), true, false)
SetPedIntoVehicle(ped, vehicle, -1)
SetModelAsNoLongerNeeded(model)const model = GetHashKey('freightcont2'); // 240201337
RequestModel(model);
while (!HasModelLoaded(model)) await new Promise((r) => setTimeout(r, 0));
const ped = PlayerPedId();
const [x, y, z] = GetEntityCoords(ped, true);
const vehicle = CreateVehicle(model, x, y, z, GetEntityHeading(ped), true, false);
SetPedIntoVehicle(ped, vehicle, -1);
SetModelAsNoLongerNeeded(model);-- server side (OneSync): the vehicle exists for everyone, even far away
local ped = GetPlayerPed(source)
local coords = GetEntityCoords(ped)
local vehicle = CreateVehicleServerSetter(`freightcont2`, 'train', coords.x, coords.y, coords.z, GetEntityHeading(ped))In a FiveM console with a vehicle spawner (vMenu, txAdmin) the spawn name freightcont2 is all you need. Backticks in Lua turn the name into its hash at compile time, the same number as 240201337.
vehicles.meta flags
FLAG_NO_BOOTFLAG_PEDS_CAN_STAND_ON_TOPFLAG_GEN_NAVMESHFLAG_DONT_SPAWN_AS_AMBIENTFLAG_FORCE_ENABLE_CHASSIS_COLLISION
Open the Freight Train in the Vehicle EditorThe original GTA model opens as a new project: remove badges, add parts, lights and paint, change handling, and export it as a FiveM resource.Make a livery for the Freight TrainThe original model opens in the Livery Mapper: pick the panels, paint or generate the livery, export it for FiveM.






