OnCharacter: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = onCharacter
|side = client
|type = event
|type = event
|name = onCharacter
|games = iii vc sa iv
|usage = a character key is pressed down. If the character key is held down, the event is triggered repeatedly.
|desc = a character key is pressed down. If the character key is held down, the event is triggered repeatedly.
|callbackParameters = Event event, string text
|arg1 = string text The character typed.
|parameter1 = string text The character typed.
|cancel = false
|cancellable = false
}}
}}

Latest revision as of 20:28, 19 November 2022

Event Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Client 1.0.0

onCharacter(Event event, string text)

The onCharacter event is invoked when a character key is pressed down. If the character key is held down, the event is triggered repeatedly.

Parameters

1) Event event The event object for this event.
2) string text The character typed.

Attributes

const This event cannot be cancelled.

Notes

There aren't any notes for this event.

Examples

There aren't any examples for this event.

Compatibility

There isn't any compatibility information for this event.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnCharacter
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnKeyDown
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnKeyUp