giogimic Posted October 12, 2015 Share Posted October 12, 2015 I'm trying to remove the logo's off of police vehicles, I see it inside Vehicle.txd but i don't know how to add that to my server i tried with modloader but doesn't work so i assume theres something im missing? Link to comment
Rataj Posted October 13, 2015 Share Posted October 13, 2015 Edit your TXD and DFF, add it to meta.xml and then use this client-side script: txd = engineLoadTXD("lspd.txd") engineImportTXD(txd, 596) dff = engineLoadDFF("lspd.dff", 596) engineReplaceModel(dff, 596) And if you are planning to replace more skins (compatible for objects even with collision file too) in one script I recommend you to use array with this function: local skins = {596,597,598,599} function applySkins() for k,v in ipairs(skins) do if(fileExists("skins/"..v..".col"))then col = engineLoadCOL("skins/"..v..".col") engineReplaceCOL(col,v) end if(fileExists("skins/"..v..".txd"))then txd = engineLoadTXD("skins/"..v..".txd") engineImportTXD(txd,v) end if(fileExists("skins/"..v..".dff"))then dff = engineLoadDFF("skins/"..v..".dff") engineReplaceModel(dff,v) end end end addEventHandler("onClientResourceStart",getResourceRootElement(),applySkins) 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