Jump to content

Single Player AI (Like GTA Online AI)


Recommended Posts

Posted
В 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);
Posted
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 ?

  • Sad 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...