Jump to content

[Help Request] How can i remove "LSPD" and "LVPD" off vehicl


giogimic

Recommended Posts

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

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