You might need to change the bone index it uses to something like the clavicle (10706) then modify the x, y, z of the weapon object a bit to position it how you’d like. The clavicle seems like the closest ‘ped bone’ to the chest.
To add more weapons to show up on a player’s back just add a table entry into the SETTINGS.compatable_weapon_hashes table in the form of [obj] = hash where obj is a string that represents a GTA object (this is what actually shows up on the back, and should be the object model of the weapon you are trying to add) and hash is the weapon hash of the desired weapon.
Maybe like a hotkey that toggles the functionality on/off would be what you are looking for? I could do that when I get the time, or if someone else contributes that for me I can merge it!
Also, just out of curiosity – what is it that makes you want to be able to choose to have it on instead of ‘automatic’? What type of situation?
Say if you wanna pretend the weapon is in your trunk but you wanna keep it in your inventory then it goes onto your back it can be annoying for people, are you able to do like a command instead of a hotkey to stop confliction.
@DazPlayzzz Ah I see. I can try to add some sort of toggle function to it when I get a sec. I am not sure the way I register commands would be the same as the way your server does it, so if you could send me an example of how your server handles chat command registering that would be helpful to make it compatible with your server.
@eknjack This is already a purely client sided script. Just follow the instructions under “Installation” above and it will work automatically for all clients on your server!
@minipunch I really love this resource, thanks for your hard work!
However…
Unfortunatly i am running into a bug where as soon as a player loads in the server, all his weapons are on the floor. But when the player opens his weapon menu with Q, and selects a weapon it appears on his back.
In other terms, a player has to first put all his weapons in his hand one by one before it will show on his back. Before that all weapons are on the floor.