The other day I downloaded a script from @brickyard that involved a ‘/sg’ command to remove attach sunglasses to your ped. I thought the same should be done for hats, so using his layout, I altered some things and made a /hat script. Simple yet so necessary.
Type /hat to remove your current selected hat (obviously, you must have a hat equipped).
Type /hat again, to reattach it.
Credit goes to Brickyard and his original script located here
(Side note: Didn’t post screenshots due to the simple fact that there’s really not much to show for such a simple script.)
There are a few in that List that would work without a sound, even the mask anim. The thing is, if you want to allow players to “take on/off” it in a vehicle, some of the anims make the player stand up in the driver seat or any seat, so you’d have to find or use the sitting type if in a vehicle, if it even has one. The one I posted animates the upper half of the body only, I think, so it works standing or sitting. That’s why I suggested that one. But yeah, it does sound funny when putting on a soft cap that should be silent.
Hello everyone. Sorry, I’ve been away from FiveM for the longest. With my knowledge base, I’m not quite sure how to do the /mask one. From what I’ve tested, I can only confirm it works for MP peds.