Jump to content

Help.. my txd dont replace anymore :/


SandroNL

Recommended Posts

my txd worked long but since i changed my server from 1.0.3 to 1.0.4 it doesn't work anymore :S pls help ;D

local resourceRoot = getRootElement()
 
addEventHandler('onClientResourceStart', resourceRoot, 
function() 
setWaterColor ( 0,255,0 )
setSkyGradient( 0,255,0,0,255,0 )
end)
 
 
function txd ()
 
txd = engineLoadTXD ("File/landjump.txd")
engineImportTXD(txd, 1632)
engineImportTXD(txd, 1633)
engineImportTXD(txd, 1634)
engineImportTXD(txd, 1655)
 
txdRAMP = engineLoadTXD( "File/cs_ebridge.txd" )
engineImportTXD(txdRAMP , 18450)
 
txdRAMPI = engineLoadTXD( "File/vgncarshade1.txd" ) 
engineImportTXD(txdRAMPI , 3458 )
 
txdRAMPII = engineLoadTXD( "File/vgsn_billboard.txd" ) 
engineImportTXD(txdRAMPII , 7301 )
 
txdRAMPIII = engineLoadTXD( "File/vgebillboards.txd" ) 
engineImportTXD(txdRAMPIII , 9186 )
 
txdRAMPIV = engineLoadTXD( "File/vgsehseing1.txd" )
engineImportTXD(txdRAMPIV , 8557)
 
txdRAMPV = engineLoadTXD( "File/vgsehseing2.txd" )
engineImportTXD(txdRAMPV , 8558)
 
txdRAMPVI = engineLoadTXD( "File/vgsehseing3.txd" )
engineImportTXD(txdRAMPVI , 8838)
 
end
addEventHandler ("onClientResourceStart", getRootElement(), txd)

Link to post

so like this ?

resourceRoot = getResourceRootElement(getThisResource())
 
addEventHandler('onClientResourceStart', resourceRoot, 
function() 
setWaterColor ( 0,255,0 )
setSkyGradient( 0,255,0,0,255,0 )
end)
 
resourceRoot = getResourceRootElement(getThisResource())
 
function txd ()
 
txd = engineLoadTXD ("File/landjump.txd")
engineImportTXD(txd, 1632)
engineImportTXD(txd, 1633)
engineImportTXD(txd, 1634)
engineImportTXD(txd, 1655)
 
txdRAMP = engineLoadTXD( "File/cs_ebridge.txd" )
engineImportTXD(txdRAMP , 18450)
 
txdRAMPI = engineLoadTXD( "File/vgncarshade1.txd" ) 
engineImportTXD(txdRAMPI , 3458 )
 
txdRAMPII = engineLoadTXD( "File/vgsn_billboard.txd" ) 
engineImportTXD(txdRAMPII , 7301 )
 
txdRAMPIII = engineLoadTXD( "File/vgebillboards.txd" ) 
engineImportTXD(txdRAMPIII , 9186 )
 
txdRAMPIV = engineLoadTXD( "File/vgsehseing1.txd" )
engineImportTXD(txdRAMPIV , 8557)
 
txdRAMPV = engineLoadTXD( "File/vgsehseing2.txd" )
engineImportTXD(txdRAMPV , 8558)
 
txdRAMPVI = engineLoadTXD( "File/vgsehseing3.txd" )
engineImportTXD(txdRAMPVI , 8838)
 
end
addEventHandler ("onClientResourceStart", getRootElement(), txd)

or

resourceRoot = getResourceRootElement(getThisResource())
 
addEventHandler('onClientResourceStart', resourceRoot, 
function() 
setWaterColor ( 0,255,0 )
setSkyGradient( 0,255,0,0,255,0 )
end)
 
function txd ()
 
txd = engineLoadTXD ("File/landjump.txd")
engineImportTXD(txd, 1632)
engineImportTXD(txd, 1633)
engineImportTXD(txd, 1634)
engineImportTXD(txd, 1655)
 
txdRAMP = engineLoadTXD( "File/cs_ebridge.txd" )
engineImportTXD(txdRAMP , 18450)
 
txdRAMPI = engineLoadTXD( "File/vgncarshade1.txd" ) 
engineImportTXD(txdRAMPI , 3458 )
 
txdRAMPII = engineLoadTXD( "File/vgsn_billboard.txd" ) 
engineImportTXD(txdRAMPII , 7301 )
 
txdRAMPIII = engineLoadTXD( "File/vgebillboards.txd" ) 
engineImportTXD(txdRAMPIII , 9186 )
 
txdRAMPIV = engineLoadTXD( "File/vgsehseing1.txd" )
engineImportTXD(txdRAMPIV , 8557)
 
txdRAMPV = engineLoadTXD( "File/vgsehseing2.txd" )
engineImportTXD(txdRAMPV , 8558)
 
txdRAMPVI = engineLoadTXD( "File/vgsehseing3.txd" )
engineImportTXD(txdRAMPVI , 8838)
 
end
addEventHandler ("onClientResourceStart", getRootElement(), txd)

Link to post

this :P but this won't fix your problem anyway.

resourceRoot = getResourceRootElement(getThisResource())
 
addEventHandler('onClientResourceStart', resourceRoot, 
function() 
setWaterColor ( 0,255,0 )
setSkyGradient( 0,255,0,0,255,0 )
end)
 
function txd_load ()
txd = engineLoadTXD ("File/landjump.txd")
engineImportTXD(txd, 1632)
engineImportTXD(txd, 1633)
engineImportTXD(txd, 1634)
engineImportTXD(txd, 1655)
 
txdRAMP = engineLoadTXD( "File/cs_ebridge.txd" )
engineImportTXD(txdRAMP , 18450)
 
txdRAMPI = engineLoadTXD( "File/vgncarshade1.txd" ) 
engineImportTXD(txdRAMPI , 3458 )
 
txdRAMPII = engineLoadTXD( "File/vgsn_billboard.txd" ) 
engineImportTXD(txdRAMPII , 7301 )
 
txdRAMPIII = engineLoadTXD( "File/vgebillboards.txd" ) 
engineImportTXD(txdRAMPIII , 9186 )
 
txdRAMPIV = engineLoadTXD( "File/vgsehseing1.txd" )
engineImportTXD(txdRAMPIV , 8557)
 
txdRAMPV = engineLoadTXD( "File/vgsehseing2.txd" )
engineImportTXD(txdRAMPV , 8558)
 
txdRAMPVI = engineLoadTXD( "File/vgsehseing3.txd" )
engineImportTXD(txdRAMPVI , 8838)
 
end
addEventHandler ("onClientResourceStart", resourceRoot, txd_load)

btw: i changed your function name from txd to txd_load becouse below you was creating variable called txd - better avoid calling your functions and variables with same name :)

and about your problem again - any errors/warnings in /debugscript 3

Link to post

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