Skip to content

Fixed: the "GetPlayerCountry" ACS function returned "--" instead of "N/A" when retrieving a player's country code in a clientsided script.

Adam Kaminski requested to merge topic/default/getplayercountry-fix into branch/default

The GetPlayerCountry ACS functions returns different values for alpha-2 or alpha-3 country codes when the player's country index is hidden or invalid, depending on whether it's called on the server or client's end:

  • On the server's end, it returns "N/A", as it should.
  • On the client's end, it returns "--" instead, which it shouldn't.

This fixes the inconsistency for clientsided scripts so that it properly returns "N/A".

Merge request reports

Loading