HELP with MENU ADDBUTTON

MalikeiraOPoder

Active member
Joined
Mar 16, 2019
Messages
100
Reaction score
2
I need help with Dialog.AddButton


I want a menu with NoSpread, but I do not know how to make it work

Example:

// register the NoSpread dialog..
Dialog.AddButton(20@, 1, "NoSpread", 5, 230, 125, 25)


// The Cheat
IF 12@ == 1
THEN

WHAT I DO HERE FOR WORK THE NoSpread

END
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
Last edited:

MalikeiraOPoder

Active member
Joined
Mar 16, 2019
Messages
100
Reaction score
2
Show us your code
i add this

:NO_SPREAD
0@ += 36
0@ *= 112
0@ += 13150960
0A8C: write_memory 0@ size 4 value 1@ virtual_protect 0
RET 0

and i did so..

Dialog.AddButton(20@, 1, "NoSpread", 5, 230, 125, 25)

IF 12@ == 1
THEN

0AB1: @NO_SPREAD 2 WEAPON_ID 24 SPREAD_VALUE 2.0

end
 

Ayamabi

Active member
Joined
Mar 8, 2018
Messages
169
Reaction score
111
i add this

:NO_SPREAD
0@ += 36
0@ *= 112
0@ += 13150960
0A8C: write_memory 0@ size 4 value 1@ virtual_protect 0
RET 0

and i did so..

Dialog.AddButton(20@, 1, "NoSpread", 5, 230, 125, 25)

IF 12@ == 1
THEN

0AB1: @NO_SPREAD 2 WEAPON_ID 24 SPREAD_VALUE 2.0

end

boi ur missing

{$CLEO}
repeat
wait 400
until 0AFA: is_samp_available

wait 0

0B80: dialog 0@ = create "No Spread Dialog"
0B84: dialog 0@ set_pos_XY 500 500 size 250 100

0B83: dialog 0@ add_checkbox id 1 text "No Spread" pos_XY 0 0 size 150 20

while true
wait 0
if 0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
then
if 2@ == 1
then
if 0B92: dialog 0@ checkbox 2@ is_checked
then
0AB1: @NO_SPREAD 2 WEAPON_ID 24 SPREAD_VALUE 2.0
end
end
end
END
 

MalikeiraOPoder

Active member
Joined
Mar 16, 2019
Messages
100
Reaction score
2
boi ur missing

{$CLEO}
repeat
wait 400
until 0AFA: is_samp_available

wait 0

0B80: dialog 0@ = create "No Spread Dialog"
0B84: dialog 0@ set_pos_XY 500 500 size 250 100

0B83: dialog 0@ add_checkbox id 1 text "No Spread" pos_XY 0 0 size 150 20

while true
wait 0
if 0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
then
if 2@ == 1
then
if 0B92: dialog 0@ checkbox 2@ is_checked
then
0AB1: @NO_SPREAD 2 WEAPON_ID 24 SPREAD_VALUE 2.0
end
end
end
END
is not working
 
Top