local The_Thread_Handle = INVALID_THREAD_HANDLE
show_location(true)
local MSG_NN = 1
function set_msg_index_plus(increment)
if increment == true then
if MSG_NN == 13 then
MSG_NN = 1
else
MSG_NN = MSG_NN + 1
end
else
if MSG_NN == 1 then
MSG_NN = 13
else
MSG_NN = MSG_NN - 1
end
end
end
function function_with_the_code()
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_4") then
if MSG_NN == 1 then
mission_help_table("MSG_1", LOCAL_PLAYER)
elseif MSG_NN == 2 then
mission_help_table("MSG_2", LOCAL_PLAYER)
elseif MSG_NN == 3 then
mission_help_table("MSG_3", LOCAL_PLAYER)
elseif MSG_NN == 4 then
mission_help_table("MSG_4", LOCAL_PLAYER)
elseif MSG_NN == 5 then
mission_help_table("MSG_5", LOCAL_PLAYER)
elseif MSG_NN == 6 then
mission_help_table("MSG_6", LOCAL_PLAYER)
elseif MSG_NN == 7 then
mission_help_table("MSG_7", LOCAL_PLAYER)
elseif MSG_NN == 8 then
mission_help_table("MSG_8", LOCAL_PLAYER)
elseif MSG_NN == 9 then
mission_help_table("MSG_9", LOCAL_PLAYER)
elseif MSG_NN == 10 then
mission_help_table("MSG_10", LOCAL_PLAYER)
elseif MSG_NN == 11 then
mission_help_table("MSG_11", LOCAL_PLAYER)
elseif MSG_NN == 12 then
mission_help_table("MSG_12", LOCAL_PLAYER)
elseif MSG_NN == 13 then
mission_help_table("MSG_13", LOCAL_PLAYER)
end
set_msg_index_plus(true)
end
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_5") then
mission_help_table("Working",LOCAL_PLAYER)
if MSG_NN == 1 then
mission_help_table("MSG_1", LOCAL_PLAYER)
elseif MSG_NN == 2 then
mission_help_table("MSG_2", LOCAL_PLAYER)
elseif MSG_NN == 3 then
mission_help_table("MSG_3", LOCAL_PLAYER)
elseif MSG_NN == 4 then
mission_help_table("MSG_4", LOCAL_PLAYER)
elseif MSG_NN == 5 then
mission_help_table("MSG_5", LOCAL_PLAYER)
elseif MSG_NN == 6 then
mission_help_table("MSG_6", LOCAL_PLAYER)
elseif MSG_NN == 7 then
mission_help_table("MSG_7", LOCAL_PLAYER)
elseif MSG_NN == 8 then
mission_help_table("MSG_8", LOCAL_PLAYER)
elseif MSG_NN == 9 then
mission_help_table("MSG_9", LOCAL_PLAYER)
elseif MSG_NN == 10 then
mission_help_table("MSG_10", LOCAL_PLAYER)
elseif MSG_NN == 11 then
mission_help_table("MSG_11", LOCAL_PLAYER)
elseif MSG_NN == 12 then
mission_help_table("MSG_12", LOCAL_PLAYER)
elseif MSG_NN == 13 then
mission_help_table("MSG_13", LOCAL_PLAYER)
end
set_msg_index_plus(false)
end
end
function gameplay_the_scroler_init()
The_Thread_Handle = thread_new("tp_thread_manager")
end
function tp_thread_manager()
while true do
function_with_the_code()
delay(0.2)
end
end