natives.drawFrontendHelperText
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.drawFrontendHelperText(string label, string control, bool show)
The natives.drawFrontendHelperText function is used to Displays a helper text prompt in the frontend HUD with a control hint.
Parameters
| 1) | string | label | Text label to display (can be a literal or a localized key). |
| 2) | string | control | Control name to show (e.g. "INPUT_F_ENTER"). |
| 3) | bool | show | Whether to show (true) or hide (false) the helper text. |
Return
| void | This function doesn't return a value. |
Notes
- - The helper text appears in a fixed position on the HUD (bottom area)- Useful for tutorials, prompts, or guiding players to press a specific key.
Examples
Example 1 - JavaScript:
addCommandHandler("showhelper", function(command, params, client) {
natives.drawFrontendHelperText("Press to continue", "INPUT_F_ENTER", true);
setTimeout(() => {
natives.drawFrontendHelperText("Press to continue", "INPUT_F_ENTER", false);
}, 5000);
});
Compatibility
There isn't any compatibility information for this function.