Jump to content

Custom Text


Recommended Posts

 

{$CLEO}0ACA: show_text_box "TEST"0A93:

 

 

{$CLEO}0ADF: add_dynamic_GXT_entry "TEST" text "BnB"00BA: show_text_styled GXT "TEST" time 1000 style 2  // Beefy Baron      0A93:

 

 

{$CLEO}0ADF: add_dynamic_GXT_entry "TEST" text "BnB"033E: set_draw_text_position 320.0 180.333 GXT "TEST" // Push      0A93:

 

 

 

 

{$CLEO}thread 'MSG_TEST'wait 50000AB1: call_scm_func @LabelMSGMain 1 @LabelMSG01wait 50000AB1: call_scm_func @LabelMSGMain 1 @LabelMSG020A93: end_custom_thread:LabelMSGMain0A9F: 1@ = current_thread_pointer1@ += 160A8D: 1@ = read_memory 1@ size 4 virtual_protect 00062: 1@ -= 0@ // (int)1@ += 4if0AA9:  is_game_version_originaljf @LabelMSGVersion1010AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 1@ // v1.0jump @LabelMSGMain02:LabelMSGVersion1010AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 1@ // v1.01:LabelMSGMain020AB2: ret 0:LabelMSG010900: "You are playing...":LabelMSG020900: "GTA San Andreas"0000: nop

 

Script by Rapier

Edited by BnB
Link to comment
https://gtaforums.com/topic/457989-custom-text/#findComment-1060102713
Share on other sites

 

1@v = "ABCD"0AC7: 0@ = var 1@ offset0@ += 2  // skip the first 2 characters0A8D: 1@ = read_memory 0@ size 2 virtual_protect 0  // read the next 2 characters0AD0: show_text_box 1@v

 

See this? 1@v == 1@ (in this case), and it is var offset.

 

So if you want to show text from @v, then use:

 

 

0@v = "String"0AC7: 5@ = var 0@ offset0ACA: show_text_box 5@

 

 

Should work, but didn't tested it.

Link to comment
https://gtaforums.com/topic/457989-custom-text/#findComment-1060102991
Share on other sites

1@v = "ABCD"0AC7: 0@ = var 1@ offset0@ += 2  // skip the first 2 characters0A8D: 1@ = read_memory 0@ size 2 virtual_protect 0  // read the next 2 characters0AD0: show_text_box 1@v

 

See this? 1@v == 1@ (in this case), and it is var offset.

 

So if you want to show text from @v, then use:

 

 

0@v = "String"0AC7: 5@ = var 0@ offset0ACA: show_text_box 5@

 

 

Should work, but didn't tested it.

It works but the Text is bugged(missing letters, $, %, & WTF)

Link to comment
https://gtaforums.com/topic/457989-custom-text/#findComment-1060103757
Share on other sites

That's because you pass a pointer which may contains ASCII code into its offset. You must read memory with 0A8D. wink.gif

Thanks but what do I read? I tried this but it crashes

 

0@v = "BLIND fdkjf"0AC7: 1@ = var 0@ offset0A8D: 1@ = read_memory 1@ size 4 virtual_protect 00ACA: show_text_box 1@

 

Link to comment
https://gtaforums.com/topic/457989-custom-text/#findComment-1060103897
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.