Jump to content

Race - Hide spectate gui


Mefisto_PL

Recommended Posts

Posted

Hi everyone ! I've hide a spectate gui from race gamemode, but it makes an errors.. So how to fix it?

Errors - http://img208.imageshack.us/img208/4320/g5wy.png

function Spectate._start() 
    outputDebug( 'SPECTATE', 'Spectate._start ' ) 
    triggerServerEvent('onClientNotifySpectate', g_Me, true ) 
    assert(not Spectate.active, "Spectate._start - not Spectate.active") 
    local screenWidth, screenHeight = guiGetScreenSize() 
    --[[g_GUI.specprev = guiCreateStaticImage(screenWidth/2 - 100 - 58, screenHeight - 123, 58, 82, 'img/specprev.png', false, nil) 
    g_GUI.specprevhi = guiCreateStaticImage(screenWidth/2 - 100 - 58, screenHeight - 123, 58, 82, 'img/specprev_hi.png', false, nil) 
    g_GUI.specnext = guiCreateStaticImage(screenWidth/2 + 100, screenHeight - 123, 58, 82, 'img/specnext.png', false, nil) 
    g_GUI.specnexthi = guiCreateStaticImage(screenWidth/2 + 100, screenHeight - 123, 58, 82, 'img/specnext_hi.png', false, nil) 
    g_GUI.speclabel = guiCreateLabel(screenWidth/2 - 100, screenHeight - 100, 200, 70, '', false)]]-- 
    Spectate.updateGuiFadedOut() 
    guiLabelSetHorizontalAlign(g_GUI.speclabel, 'center') 
    hideGUIComponents('specprevhi', 'specnexthi') 
    if Spectate.savePos then 
        savePosition() 
    end 
    Spectate.setTarget( Spectate.findNewTarget(g_Me,1) ) 
    bindKey('arrow_l', 'down', Spectate.previous) 
    bindKey('arrow_r', 'down', Spectate.next) 
    MovePlayerAway.start() 
    Spectate.setTarget( Spectate.target ) 
    Spectate.validateTarget(Spectate.target) 
    Spectate.tickTimer:setTimer( Spectate.tick, 500, 0 ) 
end 

Posted

Well, obviously you only removed that code, but it was being used on different parts of the game mode, so you have to remove these aswell.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...