I’m running a heavily customized version of DarkRP and I’m trying to make it so that when a player changes jobs, their player colour changes too. Some of the playermodels I use for specific jobs have no custom viewmodel hands, so I’m trying to at least make the colour of the standard ‘citizen’ sleeves they see match their playermodel. (Said playermodel has no actual colour options for its world model, but changing the player colour will still change the colour of the standard sleeves in viewmodel, obviously.)
Now, the problem isn’t getting this to work. I did. The problem is that the function SetPlayerColor only takes a “vector” value, which seems to be an RGB colour absolute. As in each colour value is a binary. (1, 0, 0) for red, (1, 0, 1) for purple, and so forth. It is obviously designed for gamemodes with team-based play in mind, designating each team with a unique colour that’s easily visually identifiable.
Is there any way to circumvent this? I could set the ‘colour’ of the player as an entity but that’s not going to have the desired effect of colouring their viewmodel sleeves and will just look weird on the world model so that won’t work.
Surely since players can set a non-vector playercolour in-game, there must be a way to do it through lua??? :why: