open.mp
open.mp copied to clipboard
GetPlayerZoneName
trafficstars
Is your feature request related to a problem? Please describe. Currently if you attempt to show the players current zone name (eg "Old Venturas Strip", "Ganton", "Gant Bridge") you would have to manually insert a static array and check positions or otherwise rely on a 3rd party solution. Forcing a lot of copy n paste on every new script this is used.
Describe the solution you'd like Build in GetPlayerZoneName native which handles the location array as well as proper position checking.
Describe alternatives you've considered 3rd Party Solutions like this
Additional context None