Player::invoke

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Invokes specified native function

Parameters

  • hash: String
  • args: Any

Syntax

Server-Side
player.invoke(hash, [, ...args])

Example

Server-Side
function playerJoinHandle(player)
{
    player.invoke('0xBBAF4B768DDB7572', player, true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39)
}

mp.events.add('playerJoin', playerJoinHandle)

See Also