Player::setEnableScuba

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



When enabled, will change the style of your swimming when underwater.

NOTE: This does not apply any scuba gear. This must be done using the appropriate functions.

JavaScript Syntax

Syntax

player.setEnableScuba(toggle);

Required Arguments

  • toggle: Boolean

Example

Client-Side
mp.players.local.setEnableScuba(true);


See also