Jump to content

How to clone AK-47?


hipolitalakaj

Recommended Posts

Hey guys!

I want to add some skin to AK-47 (Gold,Case Hardened,etc...) it is possible to clone the original ak-47 item to an another item id? (original id is 30 for sure https://wiki.multitheftauto.com/wiki/Weapons)

But I want to add another ak47 model for example: item id 90 and if I give item id 90 to myself then load the ak with the gold dff and txd model.

Or is there another way to do this?

Thanks for help. (and sorry for my bad eng)

Link to comment

I'm not entirely sure what you're asking for, but if I'm not wrong you're asking for multiple players to be able to use different AK47 skins at the same time.
If that's what you want, shaders is what you wanna use.
I'm quite experienced with DFF and TXD files if you need help you can add me on Skype I can help broski.

Link to comment

How can I do it if I want to replace the model only the localplayer who using the item?

-- Client --


function GoldAK ()

txd = engineLoadTXD ( "ak47.txd" )
engineImportTXD ( txd, 355 )
dff = engineLoadDFF ( "ak47.dff" )
engineReplaceModel ( dff, 355 )
end
addEvent( "goldAK", true )
addEventHandler( "goldAK", localPlayer, GoldAK )

-- Server --

if weap == 30 and item == 166 then
        triggerClientEvent( "goldAK", root,  goldAK )

 

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