hipolitalakaj Posted January 13, 2019 Posted January 13, 2019 Hi! How can I replace weapon model only for localplayer who using the item but others can see their model too? -- Client side -- 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 side -- if weap == 30 and item == 166 then triggerClientEvent( "goldAK", root, goldAK )
Captain Cody Posted January 13, 2019 Posted January 13, 2019 (edited) You can't (With keeping the original AK intact) , instead use shaders. Edited January 13, 2019 by CodyJ(L)
hipolitalakaj Posted January 13, 2019 Author Posted January 13, 2019 I want to use txd and dff files, not images like png for replace the original ak. It isn't possible to replace with txd and dff only for localplayer?
hipolitalakaj Posted January 14, 2019 Author Posted January 14, 2019 I think it's possible, I saw that some servers already did it. But with shaders I can change the weapon models with just image (png) files which ugly... , right?
Captain Cody Posted January 14, 2019 Posted January 14, 2019 No server has done it conventially, you'd have to use a custom weapon system to come close
savour Posted January 14, 2019 Posted January 14, 2019 11 hours ago, hipolitalakaj said: But with shaders I can change the weapon models with just image (png) files which ugly... , right? basically, shaders means the drawings on the screen, with it you can do almost everything you can imagine with it, but you have to get some *knowledge*
hipolitalakaj Posted January 14, 2019 Author Posted January 14, 2019 10 minutes ago, savour said: basically, shaders means the drawings on the screen, with it you can do almost everything you can imagine with it, but you have to get some *knowledge* What do you mean? Can I use txd+dff files with shaders? or just images? like png
hipolitalakaj Posted January 14, 2019 Author Posted January 14, 2019 Or can I do this with the bone_attach script? I want to use dff and txd files.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now