Jump to content

Custom car paintjobs


TDK

Recommended Posts

Posted

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)

Fresh Russian Server! Fresh every day=D

Posted

I think I ever heard of the same topic.

It was answered that you can't change paintjobs yet. But you still can change it by your client.

XX3 is gone. This is my new name. :3

Posted
I think I ever heard of the same topic.

It was answered that you can't change paintjobs yet. But you still can change it by your client.

Please take me more information about it

Fresh Russian Server! Fresh every day=D

Posted

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]

Posted
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

Fresh Russian Server! Fresh every day=D

Posted

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.

Posted
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

Fresh Russian Server! Fresh every day=D

Posted

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

Posted

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

  • 2 weeks later...
Posted

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)

Fresh Russian Server! Fresh every day=D

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