CLEO Help GET SCREEN POS

CLEO related
Status
Not open for further replies.

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
hey i want to create text draw but i dont have idea how get the screen pos :/ please help me
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
The "position" goes like this:

POSITION_X can go from 0.0 up to 640.0 // LEFT TO RIGHT
POSITION_Y can go from 0.0 up to 448.0 // UP TO DOWN

So if you want to create a text in the middle of the screen you take the half size of the cordinates like this:

03F0: enable_text_draw 1
033E: set_draw_text_position 320.0 224.0 GXT 'BJ_PUSH'

or for example, you want a text on the left side of the screen:

03F0: enable_text_draw 1
033E: set_draw_text_position 0.0 224.0 GXT 'BJ_PUSH'

Just mess around with it and youll get it soon xD
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
I'm using this form
0ADF: add_dynamic_GXT_entry "LOL" text "~R~SEX"
03F0: enable_text_draw 1
033E: set_draw_text_position 6.0 9.0 GXT "LOL"
but the text draw does not appear :(
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
WaTTi link said:
I'm using this form
0ADF: add_dynamic_GXT_entry "LOL" text "~R~SEX"
03F0: enable_text_draw 1
033E: set_draw_text_position 6.0 9.0 GXT "LOL"
but the text draw does not appear :(

These opcodes are made for singelplayer.

For SAMP just use this:

0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED000' 0@
0AA5: call 0x718600 2 pop 2 0@ "CRED000 IS NOW THIS TEXT!"
03F0: enable_text_draw 1
033E: set_draw_text_position 6.0 9.0 GXT "CRED000"


You can use "cred000" up to "cred100" and more..
 
Status
Not open for further replies.
Top