GRAPHICS
SET_SCRIPT_GFX_ALIGN
0xB8A850F20A067EB6
Jenkins: 0x228A2598
Signature
// GRAPHICS
void SET_SCRIPT_GFX_ALIGN(int horizontalAlign, int verticalAlign)
Parameters
| Type | Name |
|---|---|
| int | horizontalAlign |
| int | verticalAlign |
Return type void
Build 323
Former names
- _SET_SCREEN_DRAW_POSITION
- _SCREEN_DRAW_POSITION_BEGIN
Documentation
horizontalAlign: The horizontal alignment. This can be 67 ('C'), 76 ('L'), or 82 ('R'). verticalAlign: The vertical alignment. This can be 67 ('C'), 66 ('B'), or 84 ('T'). This function anchors script draws to a side of the safe zone. This needs to be called to make the interface independent of the player's safe zone configuration. These values are equivalent to alignX and alignY in common:/data/ui/frontend.xml, which can be used as a baseline for default alignment. Using any other value (including 0) will result in the safe zone not being taken into account for this draw. The canonical value for this is 'I' (73). For example, you can use SET_SCRIPT_GFX_ALIGN(0, 84) to only scale on the Y axis (to the top), but not change the X axis. To reset the value, use RESET_SCRIPT_GFX_ALIGN.
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.