hi there. i have a question about this script.
--smallg
--script to read a note/paper found in game
--image must be in folder "scriptbank\images\note" & named "000.png" / "001.png" / "002.png" etc
--how far away from note it can be read
local use_range = 300
--key press to read note
local use_key = "e"
--maximum notes to display (use key will cycle through)
local max_page = 2
local pressed = 0
local reading = {}
function note_init(e)
LoadImages("tb-09",0)
reading[e] = 0
end
function note_main(e)
if GetPlayerDistance(e) <= use_range then
if reading[e] == 0 then
TextColor(28,70,5,"Press E to see mission objectives" ,255,255,255)
if GetInKey() == use_key and pressed == 0 then
Hide(e)
SetPlayerWeapons(0)
pressed = 1
reading[e] = 1
SetImageAlignment(0)
SetImagePosition(50,50)
ShowImage(0)
end
elseif reading[e] >= 1 then
if GetInKey() == use_key and pressed == 0 then
pressed = 1
HideImage(reading[e] - 1)
reading[e] = reading[e] + 1
if reading[e] > max_page then
reading[e] = 0
Show(e)
SetPlayerWeapons(1)
else
ShowImage(reading[e] - 1)
end
end
end
else
if reading[e] > 0 then
HideImage(reading[e] - 1)
reading[e] = 0
Show(e)
SetPlayerWeapons(1)
end
end
if pressed == 1 and GetInKey() == "" then
pressed = 0
end
end
function note_exit(e)
end
when i use the radar i always have the radar in the middle of my displayed picture.
is it possible to erase the radar from the screen as long as the script is used and in the end the radar is coming back?
i know it was my mistake i made the picture and i forgot that the radar is on screen too when it's displayed.
http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti