Difference between revisions of "Spawn a vehicle"

From GTAMods Wiki
Jump to navigation Jump to search
(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)
Line 10: Line 10:
 
  [[0A93]]: end_custom_thread  
 
  [[0A93]]: end_custom_thread  
  
 +
{{Tutorial-stub}}
 
[[Category:GTA_SA]][[Category:Code Snippets]][[Category:Mission Script]]
 
[[Category:GTA_SA]][[Category:Code Snippets]][[Category:Mission Script]]

Revision as of 09:34, 1 January 2009

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