There a couple of things you can do:
- Send the packet to the client upon login and save the setting within the player object
- Modify the client so it will save these settings within the preferences.dat
- Create it client side and do something like runelite where you store client profile settings