Jump to content

AJUDA COM SCRIPT [URGENTE]


Recommended Posts

tou fazendo um script de mod de carro para tunar mas não sei o que esta mal, porque no jogo nao da nada

alguem me pode ajudar?

Meta.xml

    type="script" name="subaru" author="xxx" description="" version="1.3" /> 
    "560.txd" /> 
    "560.dff" /> 
    "1026.dff" type="client"/> 
    "1027.dff" type="client"/> 
    "1028.dff" type="client"/> 
    "1029.dff" type="client"/> 
    "1030.dff" type="client"/> 
    "1031.dff" type="client"/> 
    "1032.dff" type="client"/> 
    "1033.dff" type="client"/> 
    "1138.dff" type="client"/> 
    "1139.dff" type="client"/> 
    "1140.dff" type="client"/> 
    "1141.dff" type="client"/> 
    "1169.dff" type="client"/> 
    "1170.dff" type="client"/> 
    

replace.lua

txd = engineLoadTXD("560.txd") 
engineImportTXD(txd, 560) 
dff = engineLoadDFF("560.dff", 560) 
engineReplaceModel(dff, 560) 
dff = engineLoadDFF(1026.dff, 1026) 
engineReplaceModel(dff, 1026) 
dff = engineLoadDFF(1027.dff, 1027) 
engineReplaceModel(dff, 1027) 
dff = engineLoadDFF(1028.dff, 1028) 
engineReplaceModel(dff, 1028) 
dff = engineLoadDFF(1029.dff, 1029) 
engineReplaceModel(dff, 1029) 
dff = engineLoadDFF(1030dff, 1030) 
engineReplaceModel(dff, 1030) 
dff = engineLoadDFF(1031.dff, 1031) 
engineReplaceModel(dff, 1031) 
dff = engineLoadDFF(1032.dff, 1032) 
engineReplaceModel(dff, 1032) 
dff = engineLoadDFF(1033.dff, 1033) 
engineReplaceModel(dff, 1033) 
dff = engineLoadDFF(1138.dff, 1138) 
engineReplaceModel(dff, 1138) 
dff = engineLoadDFF(1139.dff, 1139) 
engineReplaceModel(dff, 1139) 
dff = engineLoadDFF(1140.dff, 1140) 
engineReplaceModel(dff, 1140) 
dff = engineLoadDFF(1141.dff, 1141) 
engineReplaceModel(dff, 1141) 
dff = engineLoadDFF(1169.dff, 1169) 
engineReplaceModel(dff, 1169) 
dff = engineLoadDFF(1170.dff, 1170) 
engineReplaceModel(dff, 1170) 
end 
    addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()) 

Link to comment

Script:

  
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource(),  
function() 
txd = engineLoadTXD("560.txd") 
engineImportTXD(txd, 560) 
dff = engineLoadDFF("560.dff", 560) 
engineReplaceModel(dff, 560) 
dff = engineLoadDFF('1026.dff', 1026) 
engineReplaceModel(dff, 1026) 
dff = engineLoadDFF('1027.dff', 1027) 
engineReplaceModel(dff, 1027) 
dff = engineLoadDFF('1028.dff', 1028) 
engineReplaceModel(dff, 1028) 
dff = engineLoadDFF('1029.dff', 1029) 
engineReplaceModel(dff, 1029) 
dff = engineLoadDFF('1030.dff', 1030) 
engineReplaceModel(dff, 1030) 
dff = engineLoadDFF('1031.dff', 1031) 
engineReplaceModel(dff, 1031) 
dff = engineLoadDFF('1032.dff', 1032) 
engineReplaceModel(dff, 1032) 
dff = engineLoadDFF('1033.dff', 1033) 
engineReplaceModel(dff, 1033) 
dff = engineLoadDFF('1138.dff', 1138) 
engineReplaceModel(dff, 1138) 
dff = engineLoadDFF('1139.dff', 1139) 
engineReplaceModel(dff, 1139) 
dff = engineLoadDFF('1140.dff', 1140) 
engineReplaceModel(dff, 1140) 
dff = engineLoadDFF('1141.dff', 1141) 
engineReplaceModel(dff, 1141) 
dff = engineLoadDFF('1169.dff', 1169) 
engineReplaceModel(dff, 1169) 
dff = engineLoadDFF('1170.dff', 1170) 
engineReplaceModel(dff, 1170) 
end 
) 

Link to comment
  • 2 weeks later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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