Jump to content

HELP!!


razvan2299

Recommended Posts

lol calm down ,

function applyMods() 
    local skin = engineLoadTXD("m4.txd", true) 
    engineImportTXD(skin, 356) 
    local skin = engineLoadDFF("m4.dff", 356) 
    engineReplaceModel(skin, 356) 
end 
addEventHandler("onClientResourceStart", resourceRoot, applyMods) 

Link to comment
function mods() 
    local txd = engineLoadTXD ('(yourfile.txd)') 
    engineImportTXD(txd,(weapon - skin - vehicle, object ID) 
    local dff = engineLoadDFF('(yourfile.dff)') 
    engineReplaceModel(dff,weapon - skin - vehicle, object ID) 
    local col = engineLoadCol('(yourfile.col)') 
    engineReplaceModel(col,object ID) 
end 
addEventHandler('onClientResourceStart',getResourceRootElement(getThisResource()),mods) 

Example

function mods() 
    local txd = engineLoadTXD ('files/1.txd') 
    engineImportTXD(txd,56) 
    local dff = engineLoadDFF('files/1.dff',56) 
    engineReplaceModel(dff,56) 
end 
addEventHandler('onClientResourceStart',getResourceRootElement(getThisResource()),mods) 

Link to comment

What don't you understand ?

function applyMods() 
    local skin = engineLoadTXD("ak47.txd", true) 
    engineImportTXD(skin, 30) 
    local skin = engineLoadDFF("ak47.dff", 30) 
    engineReplaceModel(skin, 30) 
end 
addEventHandler("onClientResourceStart", resourceRoot, applyMods) 

meta:

  

Link to comment

<meta> 
<script src="scriptname.lua" /> 
<file src="ak47.txd" /> 
<file src="ak47.dff" /> 
</meta> 

Should be:

<meta> 
<script src="scriptname.lua" type="client"/> 
<file src="ak47.txd" /> 
<file src="ak47.dff" /> 
</meta> 

If you don't define the type, it's automatically server-side.

Link to comment

oh ye pa3ck didn't noticed that , thanks :-)

you put them in one folder razvan , than you create a file called scriptname.lua , and put my code in that file.

Than you create a meta.xml , and put that in what pa3ck write.

Than you go on your server , type /refresh , and than /start resourcename

(resourcename is the folder which you create so change it to your folder name).

Hope it helps.

Link to comment
What don't you understand ?
function applyMods() 
    local skin = engineLoadTXD("ak47.txd", true) 
    engineImportTXD(skin, 30) 
    local skin = engineLoadDFF("ak47.dff", 30) 
    engineReplaceModel(skin, 30) 
end 
addEventHandler("onClientResourceStart", resourceRoot, applyMods) 

meta:

  

For replace txd or dff we use model id and not weapon id, so 30 won't work you need the model id and this can be found on the wiki.

https://wiki.multitheftauto.com/wiki/Weapons

Model ID for AK-47 is 355.

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