Skip to content

function anx (client-side)

Available since version: 0.0.1


Use this function only when you want to convert x position or width on the screen.


Virtual screen coordinates are similar to percentage values, where 0 is 0% and 8192 is 100%.

This function will convert pixels to virtuals screen X dimension and return it as a result.
Virtuals are special type of unit used by the game to position UI elements independent from game resolution.


int anx(int pixels)


  • int pixels: the pixels to convert.

Returns int

the virtuals after conversion.