Jump to content

loading text... help me plis


Fabioxps

Recommended Posts

because it does not work?

39 line

dxLoadingText = function(vartext, target, speed, ldo) 
  if not smoothers[vartext] then 
    smoothers[vartext] = "" 
  end 
  if not ldo then 
    smoothers[vartext] = "" 
  end 
  if smoothers[vartext] == target then 
    return false 
  end 
  smoothers[vartext] = string.sub(target, 1, tonumber(string.len(smoothers[vartext])) + 1) 
  g_dxGUI[vartext]:text(tostring(smoothers[vartext])) 
  return setTimer(dxLoadingText, speed, 1, vartext, target, speed, true) 
end 

function initRace(vehicle, checkpoints, objects, pickups, mapoptions, ranked, duration, gameoptions, mapinfo, playerInfo) 
    outputDebug( 'MISC', 'initRace start' ) 
    unloadAll() 
     
    g_Players = getElementsByType('player') 
    g_MapOptions = mapoptions 
    g_GameOptions = gameoptions 
    g_MapInfo = mapinfo 
    g_PlayerInfo = playerInfo 
    triggerEvent('onClientMapStarting', g_Me, mapinfo ) 
removeEventHandler("onClientPreRender",root, boladona) 
setWaveHeight ( 0 ) 
setHeatHaze ( 0 ) 
    nextMapSet(false) 
    --addEventHandler("onClientRender",getRootElement(),drawRadarS) 
  
                showPlayerHudComponent ("radar",true) 
            showPlayerHudComponent ("crosshair",true) 
    fadeCamera(true) 
    showHUD(false) 
     
    g_Vehicle = vehicle 
    setVehicleDamageProof(g_Vehicle, true) 
    OverrideClient.updateVars(g_Vehicle) 
     
    --local x, y, z = getElementPosition(g_Vehicle) 
    setCameraBehindVehicle(vehicle) 
    --alignVehicleToGround(vehicle) 
    updateVehicleWeapons() 
    setCloudsEnabled(g_GameOptions.cloudsenable) 
    setBlurLevel(g_GameOptions.blurlevel) 
    g_dxGUI.mapdisplay:visible(g_GameOptions.showmapname) 
    if engineSetAsynchronousLoading then 
        engineSetAsynchronousLoading( g_GameOptions.asyncloading ) 
    end 
  
  
  
    dxLoadingText("mapdisplay", "#a0ff00Map: #ffffff" .. g_MapInfo.name, 130) 
  
  

Link to comment
  • 2 weeks later...

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...