natives.IS_BUTTON_PRESSED

From GTA Connected
Revision as of 11:55, 13 June 2026 by Roxas (talk | contribs) (Add ScriptItem documentation from GTA VC SCM decompile)
Jump to navigation Jump to search

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.IS_BUTTON_PRESSED(int padIndex, int button)
The natives.IS_BUTTON_PRESSED function is used to checks if a specific button on a controller is currently pressed.

Parameters

1) int padIndex Controller index (0 = player 1).
2) int button Button identifier code.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.