Jump to content

weapon model replace code problem


Gta King

Recommended Posts

Posted

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 ?

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

Posted

Try this

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

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

tnx i will try it :D

edit: not working :(

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

Posted

try to replace the file names and make sure to edit your meta.xml file.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

i already replaced it and edited my mta not working :(

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

Posted

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

Posted

1- you fixed my problem

2-its not the same name

3-i putted it in a sever side

4- you fixed my problem man tnx

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

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