Player::setEnableScuba

From RAGE Multiplayer Wiki
Revision as of 11:31, 18 July 2021 by MrPancakers2 (talk | contribs) (Updated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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