Jump to content

Una Ayuda con este script


tfujiwara86

Recommended Posts

Buenas, necesito añadir mapas custom al servidor. He hecho el scripting de uno, me lo carga y todo, pero el problema es que no me muestra el mapa en el lugar que de deberia estar(segun de donde lo baje, dice que tiene que aparecer al final de la recta de despegue del aeropuerto de san fierro)

Os dejo los codigos lua para que le hecheis un vistazo a ver si estan mal

function asrtrack() 
    txd = engineLoadTXD ( "asrtrack.txd" ) 
        engineImportTXD ( txd, 18635 ) 
    col = engineLoadCOL ( "asrtrack.col" ) 
    dff = engineLoadDFF ( "asrtrack.dff", 0 ) 
    engineReplaceCOL ( col, 18635 ) 
    engineReplaceModel ( dff, 18635 ) 
    engineSetModelLODDistance(18635, 2000) 
  
end 
  
function road() 
    txd = engineLoadTXD ( "road.txd" ) 
        engineImportTXD ( txd, 18636 ) 
    col = engineLoadCOL ( "road.col" ) 
    dff = engineLoadDFF ( "road.dff", 0 ) 
    engineReplaceCOL ( col, 18636 ) 
    engineReplaceModel ( dff, 18636 ) 
    engineSetModelLODDistance(18636, 2000) 
  
end 
  
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), 
    function() 
        engineRestoreCOL(18636) 
        engineRestoreModel(18636) 
        destroyElement(dff) 
        destroyElement(col) 
        destroyElement(txd) 
    end 
) 

Gracias por todo.

Salu2

Link to comment

Prueba eso amigo:

Client:

  
function asrtrack() 
    local txd = engineLoadTXD ( "asrtrack.txd", true ) 
    engineImportTXD ( txd, 18635 ) 
    local col = engineLoadCOL ( "asrtrack.col" ) 
    engineReplaceCOL ( col, 18635 ) 
    local dff = engineLoadDFF ( "asrtrack.dff",18635  ) 
    engineReplaceModel ( dff, 18635 ) 
    engineSetModelLODDistance(18635, 2000) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), asrtrack) 
  
function road() 
    local txd = engineLoadTXD ( "road.txd", true ) 
    engineImportTXD ( txd, 18636 ) 
    local col = engineLoadCOL ( "road.col" )  
    engineReplaceCOL ( col, 18636 ) 
    local dff = engineLoadDFF ( "road.dff", 18636 )  
    engineReplaceModel ( dff, 18636 ) 
    engineSetModelLODDistance(18636, 2000) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), road) 
  
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), 
    function() 
        engineRestoreCOL(18636) 
        engineRestoreModel(18636) 
        destroyElement(dff) 
        destroyElement(col) 
        destroyElement(txd) 
    end 
) 

Link to comment

ya lo he probado, pero sigue sin mostrarme el mapa(no aparecen los objetos)

Te dejo el .map y el IPL por si hay algo mal

"editor_main"> 
     
    
        Delux GTA Map Converter
     
     
    "delux object" posX="1981.1870117188" posY="-2863.4594726563" posZ="18.779346466064" rotX="0.0000" rotY="0.0000" rotZ="0.0000" model="18636" id="object1/> 
    object (1)" posX="1981.1870117188" posY="-2863.4594726563" posZ="18.779346466064" rotX="0.0000" rotY="0.0000" rotZ="0.0000" model="18636" id="object2 /> 
    "delux object (2)" posX="1981.1870117188" posY="-2863.4594726563" posZ="18.779346466064" rotX="0.0000" rotY="0.0000" rotZ="0.0000" model="18635" id="object3 /> 

 

#Item Placement File created by MEd 
inst 
18636, road, 0, -1021.04, 419.858, 13.1897, 0, 0, 0.923209835268, 0.384296239982, -1 
18636, road, 0, -1011.34, 410.158, 13.1897, 1.73479268728e-06, 1.73479268728e-06, -0.923209674425, -0.384296626373, -1 
18635, Drift_Track, 0, -967.474, 533.108, 13.2814, 0, 0, 0.385908181636, -0.92253719456, -1 
end 

Link to comment
  • Recently Browsing   0 members

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