cancellableEvent.isDefaultPrevented: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = isDefaultPrevented
|side = shared
|type = method
|type = method
|class = Event
|class = CancellableEvent
|name = isDefaultPrevented
|games = iii vc sa iv
|parameters = void
|desc = check if the default action for the event trigger occurrence has been prevented by resources or plugins
|returnTypes = bool
|return = bool true if the default action has been prevented, false otherwise
|usage = check if the default action for the event trigger occurrence has been prevented by resources or plugins
|freturn = bool false
|returnInfo = true if the default action has been prevented, false otherwise
|returnFail1 = bool false
}}
}}

Latest revision as of 20:36, 19 November 2022

Method Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

bool cancellableEvent.isDefaultPrevented(void)

The cancellableEvent.isDefaultPrevented method is used to check if the default action for the event trigger occurrence has been prevented by resources or plugins.

Parameters

void This method doesn't take any parameters.

Return

bool True if the default action has been prevented, false otherwise.

Types

Shared CancellableEvent

Notes

There aren't any notes for this method.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png bindEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png removeEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerNetworkEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindEventHandler


Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png bindEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png removeEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerNetworkEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindEventHandler