Spinner
Export Function
exports["ab_Hud"]:Spinner(action, text, type)
Parameters:
- action: A boolean value indicating whether to start or stop the spinner. Use
trueto start the spinner andfalseto stop it. - text: A string message to be displayed alongside the spinner. This provides context for the action being performed.
- type: A numerical value representing the spinner type. Possible values range from
1to5, each corresponding to a different visual style of the spinner.
Server-Side Event
To control the spinner from the server-side, use the following code:
TriggerClientEvent("0xHud:Spinner", source, action, text, type)
Parameters:
- source: The player ID to whom the spinner action is being sent.
- action: A boolean value to start (
true) or stop (false) the spinner. - text: The text message to be displayed alongside the spinner.
- type: A numerical value for the spinner type (1-5).