Jump to content

Custom car paintjobs


TDK

Recommended Posts

Hello all, i have a question...

it's a real to replace original elegy paintjob with a new one??

this is my script, but it don't works... anybody can help me plz?)

function replaceModel() 
 txd = engineLoadTXD("data/elegy.txd", 562 )
engineImportTXD(txd, 562)
 one = engineLoadTXD("data/elegy1.txd", 562 )
engineImportTXD(txd, 562)
 two = engineLoadTXD("data/elegy2.txd", 562 )
engineImportTXD(txd, 562)
 three = engineLoadTXD("data/elegy3.txd", 562 )
engineImportTXD(txd, 562)
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
 
addCommandHandler ( "reloadcar", replaceModel )

and the 2nd script...

function applyMods(res)
if (res==getThisResource()) then	
 
local ref = engineLoadTXD ( "data/elegy.txd" )
engineImportTXD ( ref, 562 )
end
end
addEventHandler("onClientResourceStart", getRootElement(), applyMods)
local ref = engineLoadTXD ( "data/elegy2.txd" )
engineImportTXD ( ref, 562, 2 )
end
end
addEventHandler("onClientResourceStart", getRootElement(), applyMods)
local ref = engineLoadTXD ( "data/elegy1.txd" )
engineImportTXD ( ref, 562, 1 )
end
end
addEventHandler("onClientResourceStart", getRootElement(), applyMods)
local ref = engineLoadTXD ( "data/elegy3.txd" )
engineImportTXD ( ref, 562, 3 )
end
end
addEventHandler("onClientResourceStart", getRootElement(), applyMods)

Link to comment
By changing textures in your game. You can not replace paintjobs in MTA right now.

[offtopic] Btw, what does 'ref' function do? I saw it in the sorces and it's now highlighted in [lua] tags. [/offtopic]

1 MTA Don't Support changing textures (san andreas data files has been modifed)

2 Replacing paintjobs IMHO is real... or how all replaces TXD files?! E

Link to comment
The TXD-replacement function replaces a texture of a model with a certain ID. As far as I know, vehicle paitjobs doesn't have an ID at all. Thats why you can't use engineImportTXD this way.

Thanks DaK !! +1 to you) theme closed

Link to comment

1 MTA Don't Support changing textures (san andreas data files has been modifed)

FALSE!

Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server.

<verifyclientsettings>0</verifyclientsettings> for disable

Change MODELS TXD, DFF, Cols, etc no gives problems.

:P

Link to comment

1 MTA Don't Support changing textures (san andreas data files has been modifed)

FALSE!

Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server.

<verifyclientsettings>0</verifyclientsettings> for disable

Change MODELS TXD, DFF, Cols, etc no gives problems.

:P

Depends what models and textures you're talking about and in what way are you changing the models/textures...

https://wiki.multitheftauto.com/wiki/Ser ... ent_Checks

Link to comment
  • 2 weeks later...

1 MTA Don't Support changing textures (san andreas data files has been modifed)

FALSE!

Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server.

<verifyclientsettings>0</verifyclientsettings> for disable

Change MODELS TXD, DFF, Cols, etc no gives problems.

:P

Depends what models and textures you're talking about and in what way are you changing the models/textures...

https://wiki.multitheftauto.com/wiki/Ser ... ent_Checks

ololo=D done.. but... i think in mta 1.1 or 1.2..... developers add this function)

Link to comment

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