Jump to content

Changing the Paintjobs


Recommended Posts

It's possible to change the Paintjobs of the cars Elegy, Sultan, Stratum, etc, for custom paintjobs????

A friend wrote this code for me, but he told me who the custom paintjobs don't has especific ID

function setupOnePaintjob ( )  
     txd = engineLoadTXD ( "stratum3.txd" ) 
     engineImportTXD ( txd, 561 ) 
addEventHandler ( "onClientResourceStart", getRootElement ( ), setupOnePaintjob ) 

Link to comment
As I said in my post, take a look at setVehiclePaintjob. I believe the value integers are from 0 to 3, inclusive, but you'll have to check up on that one, as I'm not positive about it.

he wants to use a custom texture though, Lander it should be possible however there were some issues with it in dp2 I believe (white textures and such) loading it a couple times usually solved it, so I suggest making a command instead:

addCommandHandler ( "changepaint", setupOnePaintjob ) 

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