Highly advised you don't use this
function servercmdjeep(%cl)
{
%position = %cl.player.getPosition();
%posX = getword(%position, 0);
%posY = getword(%position, 1);
%posZ = getword(%position, 2) + 10;
%rot = getWords(%position, 3, 8);
%newcar = new WheeledVehicle()
{
dataBlock = Jeepvehicle;
client = %cl;
initialPosition = %posX @ " " @ %posY @ " " @ %posZ;
};
MissionCleanup.add(%newcar);
%newcar.setTransform(%posX @ " " @ %posY @ " " @ %posZ @ " " @ %rot
tested and working
although, you can not clear them with /clearvehicles, this will spawn you a jeep when you type /jeep
this will FORCE a jeep to be spawned.
Also, if too many jeeps are spawned, you guessed it, you lag alot
don't have too much fun);
}
I had 12 fps with 400 jeeps and max shaders
Also, do this:
new SimGroup(UselessJeeps){};
UselessJeeps.add(%newvehicle);
I can't remember whether you need the {}, sorry
Edit: Your code is horrible btw