Disabling a GUI for people in a country

Hi everyone, recently South Korea has banned online trading for virtual items in their country. Is there some way I can locate and disable my trading GUI for those in South Korea. I know you could disable it for users who are using Korean as their language but that doesn’t ban everyone in the country rather they could just set their language to English or something and it might ban users who still speak Korean but live somewhere else. I was thinking I could do some sort of while true do, but I’m not sure, any help would be appreciated.

2 Likes

This API will give you the information you need about the player.

Basically, set the visibility of the GUI to whatever the returned table’s IsPaidItemTradingAllowed entry is. This has the added benefit of being future-proof in the circumstance that other countries adopt similar policies.

You will need to do some handling on the server, though, in case exploiters re-enable the GUI. It could be a better idea to do all of the checks on the server and only give the GUI to players whose IsPaidItemTradingAllowed == true. That way, trade-ineligible players will never even receive the GUI and thus cannot exploit to reenable it.

4 Likes