setAllowMigrateToSpectator
SET_ALLOW_MIGRATE_TO_SPECTATOR0x36F32DE87082343EThe 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.
setAllowMigrateToSpectator(entity: Entity, p1: any): voidsetAllowMigrateToSpectator(entity: Entity, p1: any)Usage
JavaScript
setAllowMigrateToSpectator(entity, p1);Lua
setAllowMigrateToSpectator(entity, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
p1 | Any | any | any |
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