gh4cker Posted November 26, 2011 Posted November 26, 2011 how to mod a car in your MTA server? i see it on more servers
Castillo Posted November 26, 2011 Posted November 26, 2011 You'll need LUA scripting knowledge to do this. You must use these functions to replace a vehicle, object, weapon or ped. https://wiki.multitheftauto.com/wiki/Cli ... _functions San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
gh4cker Posted November 26, 2011 Author Posted November 26, 2011 Leaves my car white meta <meta> <info author="TheFreeroamZone" name="Replace Any Car Model On MTA!" version="1.0" type="script"/> <script src="script.lua" type="client"/> <file src="Turismo.txd" type="client"/> <file src="Turismo.dff" type="client"/> </meta> lua function replaceModel() txd = engineLoadTXD("Turismo.txd", 425 ) engineImportTXD(dff, 425) dff = engineLoadDFF("Turismo.dff", 425 ) engineReplaceModel(dff, 425) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel )
Castillo Posted November 26, 2011 Posted November 26, 2011 function replaceModel() txd = engineLoadTXD("Turismo.txd") engineImportTXD(txd, 425) dff = engineLoadDFF("Turismo.dff", 425 ) engineReplaceModel(dff, 425) end addEventHandler ( "onClientResourceStart", resourceRoot, replaceModel) addCommandHandler ( "reloadcar", replaceModel ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
gh4cker Posted November 26, 2011 Author Posted November 26, 2011 thanks it works check (OG)original gamers DM/DD server typ /sv police lv
Castillo Posted November 26, 2011 Posted November 26, 2011 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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