Code:
{$CLEO }
0000:
wait 0 ms
gosub @652
03F0: enable_text_draw 1
0B6D: render 30@ = create_font "Verdana" height 7 flags 5
0006: 12@ = 0
:42
wait 0 ms
if and
0AB0: key_pressed 16
0AB0: key_pressed 67
jf @42
if and
8B4C: not samp is_dialog_active -1
8B21: not samp is_chat_opened
jf @42
:82
wait 0 ms
8AB0: not key_pressed 67
jf @82
gosub @201
jump @301
:111
if
8AB0: not key_pressed 16
jf @133
jump @608
:133
if
8AB0: not key_pressed 67
jf @155
jump @608
:155
if and
8B4C: not samp is_dialog_active -1
8B21: not samp is_chat_opened
jf @608
:172
wait 0 ms
8AB0: not key_pressed 67
jf @172
gosub @250
jump @42
:201
0AF8: samp add_message_to_chat "on" color -1342190848
return
:250
0AF8: samp add_message_to_chat " off" color -1342190848
return
:301
if
0AFF: samp 0@ = car_handle_by_samp_vehicle_id 12@
jf @608
00AA: store_car 0@ position_to 2@ 3@ 4@
if
80C2: not sphere_onscreen 2@ 3@ 4@ radius 0.0
jf 368
jump [member=9575]111[/member]
:368
if
80DB: not actor $PLAYER_ACTOR in_car 0@
jf @608
0B55: convert_3D_coords 2@ 3@ 4@ to_screen 22@ 23@
0227: 15@ = car 0@ health
0441: 6@ = car 0@ model
0ADB: 6@v = car_model 6@ name
09B3: get_car 0@ door_status 16@
if
16@ == 0
jf @473
0AD3: 13@v = format "Open"
jump @485
:473
0AD3: 13@v = format "Lock"
:485
0AC8: 24@ = allocate_memory_size 180
0C11: memset destination 24@ value 0 size 180
0AD3: 24@ = format "%s (ID %d)" 6@v 12@
0B6F: render font 30@ draw_text 24@ pos 22@ 23@ color -1342190848
000A: 23@ += 9
0AD3: 24@ = format "%s (HP %d)" 13@v 15@
0B6F: render font 30@ draw_text 24@ pos 22@ 23@ color -1342190848
0AC9: free_allocated_memory 24@
jump @ 111
:608
12@ += 1
if
12@ > 1400
jf @301
12@ = 0
wait 0 ms
jump @301
:652
if
8AF7: not samp 0@ = get_base
jf @42
return
:imoverit: