Jump to content

[HELP] Replacing license plate textures


Recommended Posts

download this: https://community.multitheftauto.com/index.php?p= ... ls&id=6324

and replace script in client.lua to this

addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        local texture = dxCreateTexture ( "images/plateback3.jpg", "dxt5" ) 
        local shader = dxCreateShader ( "texture.fx" ) 
        dxSetShaderValue ( shader, "gTexture", texture ) 
        engineApplyShaderToWorldTexture ( shader, "plateback3" ) 
    end 
) 
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        local texture = dxCreateTexture ( "images/plateback2.jpg", "dxt5" ) 
        local shader = dxCreateShader ( "texture.fx" ) 
        dxSetShaderValue ( shader, "gTexture", texture ) 
        engineApplyShaderToWorldTexture ( shader, "plateback2" ) 
    end 
) 
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        local texture = dxCreateTexture ( "images/plateback1.jpg", "dxt5" ) 
        local shader = dxCreateShader ( "texture.fx" ) 
        dxSetShaderValue ( shader, "gTexture", texture ) 
        engineApplyShaderToWorldTexture ( shader, "plateback1" ) 
    end 
) 

Link to comment
Hi, i want to replace the textures of the License plates on my server, but i dont know how. Seems like "platecharset" doesnt change the text on them so... what i am supposed to do to replace it?

U can change the background license (type my Flag Plate )

But u can't change the texture with name "platecharset" (personal tested many times ago)

Link to comment
Hi, i want to replace the textures of the License plates on my server, but i dont know how. Seems like "platecharset" doesnt change the text on them so... what i am supposed to do to replace it?

U can change the background license (type my Flag Plate )

But u can't change the texture with name "platecharset" (personal tested many times ago)

Maybe theres a way, but we dont know how, as for forcing a paintjob in a custom car

Link to comment
client
txd = engineLoadTXD("Name.txd", ID) 
engineImportTXD(txd, ID) 
dff = engineLoadDFF("Name.dff", ID) 
engineReplaceModel(dff, ID) 
  

META

    "name.txd" /> 
    "name.dff" /> 
  
     
  
    

Nope, you cant use ID's for textures. I know you should use textures, but for charset some guy said that you cant

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