Skip to content

VimpNativesPad ​

@vimp-mp/types 2.0.1

Interface · GTA V natives API

ts
interface VimpNativesPad

Members ​

_getGamepadType ​

ts
_getGamepadType(): number

_isControlHeldDown ​

ts
_isControlHeldDown(control: number, action: number, duration: number): boolean

allowAlternativeScriptControlsLayout ​

ts
allowAlternativeScriptControlsLayout(control: number): void

clearControlLightEffect ​

ts
clearControlLightEffect(control: number): void

clearControlShakeSuppressedId ​

ts
clearControlShakeSuppressedId(control: number): void

disableAllControlActions ​

ts
disableAllControlActions(control: number): void

disableControlAction ​

ts
disableControlAction(control: number, action: number, disablerelatedactions: boolean): void

enableAllControlActions ​

ts
enableAllControlActions(control: number): void

enableControlAction ​

ts
enableControlAction(control: number, action: number, enablerelatedactions: boolean): void

getAllowMovementWhileZoomed ​

ts
getAllowMovementWhileZoomed(): boolean

getControlGroupInstructionalButtonsString ​

ts
getControlGroupInstructionalButtonsString(control: number, controlgroup: number, allowxoswap: boolean): string

getControlHowLongAgo ​

ts
getControlHowLongAgo(control: number): number

getControlInstructionalButtonsString ​

ts
getControlInstructionalButtonsString(control: number, action: number, allowxoswap: boolean): string

getControlNormal ​

ts
getControlNormal(control: number, action: number): number

getControlUnboundNormal ​

ts
getControlUnboundNormal(control: number, action: number): number

getControlValue ​

ts
getControlValue(control: number, action: number): number

getDisabledControlNormal ​

ts
getDisabledControlNormal(control: number, action: number): number

getDisabledControlUnboundNormal ​

ts
getDisabledControlUnboundNormal(control: number, action: number): number

getIsUsingAlternateDriveby ​

ts
getIsUsingAlternateDriveby(): boolean

getIsUsingAlternateHandbrake ​

ts
getIsUsingAlternateHandbrake(): boolean

getLocalPlayerAimState ​

ts
getLocalPlayerAimState(): number

getLocalPlayerGamepadAimState ​

ts
getLocalPlayerGamepadAimState(): number

haveControlsChanged ​

ts
haveControlsChanged(control: number): boolean

initPcScriptedControls ​

ts
initPcScriptedControls(schemename: string): boolean

isControlEnabled ​

ts
isControlEnabled(control: number, action: number): boolean

isControlJustPressed ​

ts
isControlJustPressed(control: number, action: number): boolean

isControlJustReleased ​

ts
isControlJustReleased(control: number, action: number): boolean

isControlPressed ​

ts
isControlPressed(control: number, action: number): boolean

isControlReleased ​

ts
isControlReleased(control: number, action: number): boolean

isDisabledControlJustPressed ​

ts
isDisabledControlJustPressed(control: number, action: number): boolean

isDisabledControlJustReleased ​

ts
isDisabledControlJustReleased(control: number, action: number): boolean

isDisabledControlPressed ​

ts
isDisabledControlPressed(control: number, action: number): boolean

isDisabledControlReleased ​

ts
isDisabledControlReleased(control: number, action: number): boolean

isLookInverted ​

ts
isLookInverted(): boolean

isMouseLookInverted ​

ts
isMouseLookInverted(): boolean

isUsingCursor ​

ts
isUsingCursor(control: number): boolean

isUsingKeyboardAndMouse ​

ts
isUsingKeyboardAndMouse(control: number): boolean

isUsingRemotePlay ​

ts
isUsingRemotePlay(control: number): boolean

setControlLightEffectColor ​

ts
setControlLightEffectColor(control: number, red: number, green: number, blue: number): void

setControlShake ​

ts
setControlShake(control: number, duration: number, frequency: number): void

setControlShakeSuppressedId ​

ts
setControlShakeSuppressedId(control: number, uniqueid: number): void

setControlTriggerShake ​

ts
setControlTriggerShake(control: number, leftduration: number, leftfrequency: number, rightduration: number, rightfrequency: number): void

setControlValueNextFrame ​

ts
setControlValueNextFrame(control: number, action: number, value: number): boolean

setCursorPosition ​

ts
setCursorPosition(x: number, y: number): boolean

setInputExclusive ​

ts
setInputExclusive(control: number, action: number): void

setPlayerpadShakesWhenControllerDisabled ​

ts
setPlayerpadShakesWhenControllerDisabled(toggle: boolean): void

setUseAdjustedMouseCoords ​

ts
setUseAdjustedMouseCoords(toggle: boolean): void

shutdownPcScriptedControls ​

ts
shutdownPcScriptedControls(): void

stopControlShake ​

ts
stopControlShake(control: number): void

switchPcScriptedControls ​

ts
switchPcScriptedControls(schemename: string): boolean

VIMP developer documentation