could you please tell me how do I make that this info only shows whenever the players press the ESC key?
JASS:
scope Test initializer init
function init takes nothing returns nothing
local string array Status
local string t = "|c009999ffCurrent Status: |r"
local integer confirm = GetRandomInt(1, 2) //1(True), 2(False)
local integer index = 0
if(confirm == 1) then
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 60, t + "Avaliable")
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 60, "|c009999ff========================|r")
set Status[index] = "|c009999ffName:|r GasQueen"
set Status[index+1] = "|c009999ffAge:|r 16"
set Status[index+2] = "|c009999ffLocation:|r Argentina"
set Status[index+3] = "|c009999ffOccupation:|r Student"
loop
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 60, Status[index])
set index = index + 1
exitwhen index == 4
endloop
else
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 60, t + "Not Avaliable")
endif
endfunction
endscope