KirylAlex Posted April 28, 2020 Posted April 28, 2020 В 20.04.2019 в 14:48, joew сказал: me too =( And did u find any train? I drive all subway and didn't find none =( I really want them spawn too ^^ and IT'S NOT SYNCED so it isn't useful if players don't see the same things =P For trains preload and spawn you can use it const trainModels = [ 'freight', 'freightcar', 'freightgrain', 'freightcont1', 'freightcont2', 'freighttrailer', 'tankercar', 'metrotrain', 's_m_m_lsmetro_01', ]; trainModels.forEach((el) => { mp.game.streaming.requestModel(mp.game.joaat(el)); mp.console.logInfo(`is loaded ${mp.game.streaming.hasModelLoaded(mp.game.joaat(el))}`); }); setInterval(() => { mp.game.vehicle.createMissionTrain(24, 247.9364, -1198.597, 37.4482, true); }, 5000);
mrpictolin Posted April 29, 2020 Posted April 29, 2020 13 hours ago, KirylAlex said: For trains preload and spawn you can use it const trainModels = [ 'freight', 'freightcar', 'freightgrain', 'freightcont1', 'freightcont2', 'freighttrailer', 'tankercar', 'metrotrain', 's_m_m_lsmetro_01', ]; trainModels.forEach((el) => { mp.game.streaming.requestModel(mp.game.joaat(el)); mp.console.logInfo(`is loaded ${mp.game.streaming.hasModelLoaded(mp.game.joaat(el))}`); }); setInterval(() => { mp.game.vehicle.createMissionTrain(24, 247.9364, -1198.597, 37.4482, true); }, 5000); It is possible to synch the metro with the rest of clients in a MP server ? 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now