Jump to content

Replace model localplayer only


hipolitalakaj

Recommended Posts

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 )

 

Link to comment

 

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*

 

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