DisableControlThisFrame

From GT-MP
Jump to: navigation, search
DisableControlThisFrame
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Disables the the specified control for a single onUpdate run.

Syntax

API.disableControlThisFrame(int control);

Required Arguments

  • control: parameter input should be in int type. See Game Controls

Usage example(s)

Disable the jump control, so the player will be unable to jump.

API.onUpdate.connect(function() {
    API.disableControlThisFrame(22);
});

References