Spawn a vehicle

From GTAMods Wiki
Revision as of 09:34, 1 January 2009 by Seemann (talk | contribs) (removed text was incorrect and all this stuff is well explained in the 014B article. this article needs an example of spawing a car with create_car opcode)
Jump to navigation Jump to search

How to make CLEO car spawns:

{$CLEO .cs}

//-------------MAIN---------------

014B: 0@ = init_parked_car_generator #HOTRING color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2335.069 -1613.274 483.7184 angle 0.0 
014C: set_parked_car_generator 0@ cars_to_generate_to 101 
0A95: enable_thread_saving
0A93: end_custom_thread