DeletedAccount1111 Posted May 1, 2013 Share Posted May 1, 2013 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? Link to comment
PaiN^ Posted May 1, 2013 Share Posted May 1, 2013 engineImportTXD engineLoadTXD And there is a numberplate argument in the createVehicle function . Link to comment
50p Posted May 1, 2013 Share Posted May 1, 2013 Are you using a shader to replace the texture? Also, are you trying to replace the text texture or the plate design? Link to comment
WASSIm. Posted May 1, 2013 Share Posted May 1, 2013 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
HunT Posted May 2, 2013 Share Posted May 2, 2013 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
DeletedAccount1111 Posted May 3, 2013 Author Share Posted May 3, 2013 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
maxleonardo3 Posted May 4, 2013 Share Posted May 4, 2013 client txd = engineLoadTXD("Name.txd", ID) engineImportTXD(txd, ID) dff = engineLoadDFF("Name.dff", ID) engineReplaceModel(dff, ID) META "name.txd" /> "name.dff" /> Link to comment
DeletedAccount1111 Posted May 4, 2013 Author Share Posted May 4, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now