URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       gtaforums
  HTML https://gtamixmods.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Coding Lounge
       *****************************************************
       #Post#: 62--------------------------------------------------
       Coding Snippets
   DIR By: ArijitSen
       Date: October 7, 2012, 10:54 am
       ---------------------------------------------------------
       Here in this topic you will find some useful opcodes,tricks &
       much more if you are a SCM/CLEO Modder.
       You are also allowed to give your useful tricks,tips,opcodes
       etc..
       #Post#: 154--------------------------------------------------
       Re: Coding Snippets
   DIR By: ArijitSen
       Date: November 9, 2012, 9:52 am
       ---------------------------------------------------------
       --- Code ---
       
       {$CLEO}
       {$I stdc}
       {$I inloop}
       {$I forplayercar}
       0A97: s = car veh struct
       model.Load(1318)
       038B:
       0AA6: call_method 0x6D3830 struct s num_params 2 pop 0
       2 1318
       0AA6: call_method 0x6D3830 struct s num_params 2 pop 0
       4 1318
       0AA6: call_method 0x6D3830 struct s num_params 2 pop 0
       5 1318
       0AA6: call_method 0x6D3830 struct s num_params 2 pop 0
       7 1318
       0A93:
       {$I for_end}
       {$I end}
       
       --- End Code ---
       Found an interesting stuff..
       Compile it in Sanny builder & there you go:
       [IMG]
  HTML http://img525.imageshack.us/img525/8407/enb2012106124753.jpg[/img]
       #Post#: 160--------------------------------------------------
       Re: Coding Snippets
   DIR By: ArijitSen
       Date: November 17, 2012, 8:18 am
       ---------------------------------------------------------
       [b][center]Car Components[/center][/center]
       Component A
       0 - Front Left Headlight
       1 - Front Right Headlight
       3 - Rear Headlights
       4 - Front Windsheild
       5 - Front Bumper
       6 - Rear Bumper
       Negative values seem to be able to control Component B, too!
       -3 - Right Passenger Door.
       -5 - Boot.
       -6 - Bonnit/Hood.
       -7 - Rear left tire.
       -8 - Front right tire.
       -9 - Rear left tire.
       -10 - Front left tire.
       -11 - 068A makes car set alight, oddly.
       Component B
       0 - Bonnit/Hood
       1 - Boot
       2 - Front Left Door (driver)
       3 - Front Right Door (passenger)
       4 - Rear Left Door (untested)
       5 - Rear Right Door (untested)
       I tested these on a Manana, which only has a few features... So
       documentation is a little incomplete.. but it's all I needed
       tongue.gif
       Other
       1 - Chassis
       2 - Front Right Wheel
       4 - Rear Right Wheel
       5 - Front Left Wheel
       7 - Rear Left Wheel
       8 - Front Right Door
       9 - Rear Right Door
       10 - Front Left Door
       11 - Rear Left Door
       12 - Right Headlight
       13 - Left Tail Light
       16 - Bonnit
       17 - Boot
       18 - Front Windsheild
       19 - Exhaust
       20 - Exhaust 2? (plane)
       21 - Plane Wheel 1
       22 - Plane Wheel 2
       23 - Plane Wheel 3
       24 - Plane Wheel 4
       Values over 24 or 25 seem to crash. There is space for 25 of
       these in the car pool (+648 ComponentID*4 for a pointer to the
       component object), so 0 is probably one, too.
       *****************************************************
       Page 1 of 1