EntityClient

setAllowMigrateToSpectator

SET_ALLOW_MIGRATE_TO_SPECTATOR0x36F32DE87082343E

The GTA V native SET_ALLOW_MIGRATE_TO_SPECTATOR of the ENTITY namespace, as LS:MP client scripts call it: the global function setAllowMigrateToSpectator, in JavaScript and in Lua.

SignatureJavaScript
setAllowMigrateToSpectator(entity: Entity, p1: any): void
SignatureLua
setAllowMigrateToSpectator(entity: Entity, p1: any)

Usage

JavaScript
setAllowMigrateToSpectator(entity, p1);
Lua
setAllowMigrateToSpectator(entity, p1)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1 is always set to 1

Reference

Namespace
Entity ENTITY
In the game
void SET_ALLOW_MIGRATE_TO_SPECTATOR(Entity entity, Any p1)
Hash
0x36F32DE87082343E
Introduced
Game build 1011 legacy numbering

Open in the interactive natives reference