Jump to content

weapon model replace code problem


Gta King

Recommended Posts

i have tryed to change a weapon model with that code

    addEventHandler("onClientResourceStart",root, 
    function () 
    weapontxd = engineLoadTXD ( "cuntgun.txd" ) 
    engineImportTXD (weapontxd,357) 
    weapondff = engineLoadDFF ( "cuntgun.dff",357) 
    engineReplaceModel (weapondff,357) 
    end) 

i putted this in server side

any help ?

Link to comment

Try this

addEventHandler("onClientResourceStart",resourceRoot, 
    function () 
    weapondff = engineLoadDFF ( ":O.dff",357) 
    engineReplaceModel (weapondff,357) 
    weapontxd = engineLoadTXD ( ":O.txd" ) 
    engineImportTXD (weapontxd,357) 
    end) 

Link to comment

if the dff file is in the same script folder you don't have to write ":"

addEventHandler("onClientResourceStart",root, 
    function () 
    weapontxd = engineLoadTXD ( "O.txd" ) 
    engineImportTXD (weapontxd,357) 
    weapondff = engineLoadDFF ( "O.dff",357) 
    engineReplaceModel (weapondff,357) 
    end) 

also make sure it's client side

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