local My_Thread_Handle = INVALID_THREAD_HANDLE
local MSG_VS = 0
local MSG_CA = 0
local MSG_CB = 0
local MSG_CC = 0
local MSG_CD = 0
function function_msg_off_on()
if player_action_is_pressed("CBA_VDC_NEXT_RADIO") then
mission_help_table("MSG_INFOPANEL", LOCAL_PLAYER)
show_location(true)
end
if player_action_is_pressed("CBA_VDC_PREV_RADIO") then
mission_help_table("MSG_INFOPANEL3", LOCAL_PLAYER)
show_location(false)
end
if player_action_is_pressed("CBA_VDC_SCAN") then
if MSG_VS == 1 then
mission_help_table("MSG_INFODANCE1", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "cage dance a")
elseif MSG_VS == 2 then
mission_help_table("MSG_INFODANCE2", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "cage dance b")
elseif MSG_VS == 3 then
mission_help_table("MSG_INFODANCE3", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "pole dancing d")
elseif MSG_VS == 4 then
mission_help_table("MSG_INFODANCE4", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "pole dancing c")
elseif MSG_VS == 5 then
mission_help_table("MSG_INFODANCE5", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "lap dance 1 a")
elseif MSG_VS == 6 then
mission_help_table("MSG_INFODANCE6", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "lap dance 2 a")
elseif MSG_VS == 7 then
mission_help_table("MSG_INFODANCE7", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "lap dance 3 a")
elseif MSG_VS == 8 then
mission_help_table("MSG_INFODANCE8", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "Lap Dance 2 A alt")
elseif MSG_VS == 9 then
mission_help_table("MSG_INFODANCE9", LOCAL_PLAYER)
action_play(LOCAL_PLAYER, "lap dance 1 b")
elseif MSG_VS == 10 then
end
if MSG_VS == 10 then
MSG_VS = 1
else
MSG_VS = MSG_VS + 1
end
end
if player_action_is_pressed("CBA_OFC_CROUCH") then
mission_help_table("MSG_UTILSMISC", LOCAL_PLAYER)
end
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_1") then
if MSG_CA == 1 then
mission_help_table("MSG_TELCBUTT", LOCAL_PLAYER)
elseif MSG_CA == 2 then
mission_help_table("MSG_TELFBUTT", LOCAL_PLAYER)
elseif MSG_CA == 3 then
mission_help_table("MSG_TELGBUTT", LOCAL_PLAYER)
elseif MSG_CA == 4 then
mission_help_table("MSG_TELXBUTT", LOCAL_PLAYER)
elseif MSG_CA == 5 then
mission_help_table("MSG_TELZBUTT", LOCAL_PLAYER)
end
if MSG_CA == 5 then
MSG_CA = 1
else
MSG_CA = MSG_CA + 1
end
end
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_2") then
if MSG_CB == 1 then
mission_help_table("MSG_SPECIALCOMCTRL", LOCAL_PLAYER)
elseif MSG_CB == 2 then
mission_help_table("MSG_SPECIALCOME", LOCAL_PLAYER)
elseif MSG_CB == 3 then
mission_help_table("MSG_SPECIALCOMR", LOCAL_PLAYER)
end
if MSG_CB == 3 then
MSG_CB = 1
else
MSG_CB = MSG_CB + 1
end
end
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_3") then
if MSG_CC == 1 then
mission_help_table("MSG_CUTSCENES", LOCAL_PLAYER)
elseif MSG_CC == 2 then
mission_help_table("MSG_CUTSCENES2", LOCAL_PLAYER)
elseif MSG_CC == 3 then
mission_help_table("MSG_CUTSCENES3", LOCAL_PLAYER)
elseif MSG_CC == 4 then
mission_help_table("MSG_CUTSCENES4", LOCAL_PLAYER)
elseif MSG_CC == 5 then
mission_help_table("MSG_CUTSCENES5", LOCAL_PLAYER)
end
if MSG_CC == 5 then
MSG_CC = 1
else
MSG_CC = MSG_CC + 1
end
end
if player_action_is_pressed("CBA_GAC_WEAPON_SELECT_4") then
if MSG_CD == 1 then
mission_help_table("MSG_CHEATSVANILLA1", LOCAL_PLAYER)
elseif MSG_CD == 2 then
mission_help_table("MSG_CHEATSVANILLA2", LOCAL_PLAYER)
elseif MSG_CD == 3 then
mission_help_table("MSG_CHEATSVANILLA3", LOCAL_PLAYER)
elseif MSG_CD == 4 then
mission_help_table("MSG_CHEATSPLAYER", LOCAL_PLAYER)
elseif MSG_CD == 5 then
mission_help_table("MSG_CHEATSHELICOPTERS", LOCAL_PLAYER)
elseif MSG_CD == 6 then
mission_help_table("MSG_CHEATSGUNS", LOCAL_PLAYER)
elseif MSG_CD == 7 then
mission_help_table("MSG_CHEATSGUNS2", LOCAL_PLAYER)
elseif MSG_CD == 8 then
show_location(false)
mission_help_table("MSG_CHEATSVEHICLE1", LOCAL_PLAYER)
elseif MSG_CD == 9 then
mission_help_table("MSG_CHEATSVEHICLE2", LOCAL_PLAYER)
elseif MSG_CD == 10 then
mission_help_table("MSG_CHEATSVEHICLE3", LOCAL_PLAYER)
elseif MSG_CD == 11 then
mission_help_table("MSG_CHEATSVEHICLE4", LOCAL_PLAYER)
elseif MSG_CD == 12 then
mission_help_table("MSG_CHEATSVEHICLE5", LOCAL_PLAYER)
elseif MSG_CD == 13 then
mission_help_table("MSG_CHEATSMISC", LOCAL_PLAYER)
end
if MSG_CD == 13 then
MSG_CD = 1
else
MSG_CD = MSG_CD + 1
end
end
end
function gameplay_gps_plusca_init()
My_Thread_Handle = thread_new("henry_thread_manager")
end
function henry_thread_manager()
while true do
function_msg_off_on()
delay(0.2)
end
end