habinabi
Active member
Please how to get the ID of the vehicle I'm sitting in?
{$CLEO .cs}
0000:
:c
WAIT 0
IF AND
0AB0: key_pressed 89
00DF: actor $PLAYER_ACTOR driving
THEN
31@ = Actor.CurrentCar($PLAYER_ACTOR)
0B2C: samp 30@ = get_vehicle_id_by_car_handle 31@
wait 100
chatmsg "CAR ID: %d" -1 30@
end
jump @c