Since Im a total noob in GUI, idk how to make this.
Basicly Im trying to make the M button to display a Map pic of the whole liberty
I took an example from Juppi's speedo script but still failed.
Here is the code:
Script.xml
<script file="MAPGUI.nut" client="1"/>
<sprite file="gta3map.png" />
MAPGUI.nut
// Map settings
g_bEnabled <- true;
g_vMapPos <- VectorScreen( ScreenWidth - 0, ScreenHeight - 0 );
/*
* LU Events
*/
function onScriptLoad()
{
print( "Version 0.1, written by [VU_R]Raiden" );
BindKey( 'M', BINDTYPE_DOWN, "Map", player );
// Create sprites
::g_Map <- GUISprite( "gta3map.png", ::g_vMapPos );
::g_Map.Visible = false;
// Add layers for each sprite so that they are rendered
AddGUILayer( ::g_Map );
return 1;
}
function Map()
{
::g_Map.Visible = true;
}
And the Sprites folder which contains the file.
Scripts
Map
Sprites
gta3map.png