6,834
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = preventDefault | ||
|side = shared | |||
|type = method | |type = method | ||
|class = CancellableEvent | |class = CancellableEvent | ||
| | |games = iii vc sa iv | ||
| | |desc = prevent the default action for the current event which is triggering | ||
|return = void | |||
|freturn = void | |||
|note = See also: [[event.isDefaultPrevented|event.isDefaultPrevented]] | |||
| | |||
|exampleJSCS = addEventHandler('onPedInflictDamage', function(event, ped, responsibleEntity, weapon, loss, pedPiece) | |exampleJSCS = addEventHandler('onPedInflictDamage', function(event, ped, responsibleEntity, weapon, loss, pedPiece) | ||
{ | { |
edits