Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

[HELP] Working stattrak in skinchanger

Open igre3zy opened this issue 7 years ago • 3 comments

Could someone guide me on how to make a working stattrak in the skin changer? It could be something as simple as (if the player gets a kill, add a kill to the stattrak number on the current weapon) thanks :)

igre3zy avatar Sep 27 '19 23:09 igre3zy

Can other players see your changed skin anyway?

RadicalRedemption avatar Sep 28 '19 09:09 RadicalRedemption

The best way I found to do this was to make a function in GameEvent hook and everytime you get a kill, get the current weapon you hold, plus 1 to a variable then at the end of the round open a json file and add the variable value to the weapon property. Then in the skinchanger when its applying the skin, read the json property and set the fallbackstattrack value to it.

JDeu avatar Sep 28 '19 12:09 JDeu

Can other players see your changed skin anyway?

No they can't see your hanged skin because the skin changer only acts on the client-side of the game and not the server-side of things. All the other players see are the default skins of each weapon, including the knife.

VuBrian22 avatar Sep 29 '19 05:09 VuBrian22