Player::invoke

From RAGE Multiplayer Wiki
Revision as of 19:42, 15 May 2017 by Kemperrr (talk | contribs) (Created page with "Calling the native functions of the client ==Parameters== * '''hash: <span style="color:#008017>String</span>''' * '''args: <span style="color:#008017>Any</span>''' ==Syntax=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Calling the native functions of the client

Parameters

  • hash: String
  • args: Any

Syntax

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

Example

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

See Also