PlayerClient

setPlayerBluetoothState

SET_PLAYER_BLUETOOTH_STATE0x5DC40A8869C22141

The GTA V native SET_PLAYER_BLUETOOTH_STATE of the PLAYER namespace, as LS:MP client scripts call it: the global function setPlayerBluetoothState, in JavaScript and in Lua.

SignatureJavaScript
setPlayerBluetoothState(player: Player, state: boolean): void
SignatureLua
setPlayerBluetoothState(player: Player, state: boolean)

Usage

JavaScript
setPlayerBluetoothState(player, state);
Lua
setPlayerBluetoothState(player, state)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
stateBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void SET_PLAYER_BLUETOOTH_STATE(Player player, BOOL state)
Hash
0x5DC40A8869C22141

Open in the interactive natives reference