Player::invoke: Difference between revisions

From RAGE Multiplayer Wiki
(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=...")
 
No edit summary
Line 1: Line 1:
Calling the native functions of the client
Invokes specified [https://cdn.rage.mp/public/natives/ native] function
 
==Parameters==
==Parameters==
* '''hash: <span style="color:#008017>String</span>'''
* '''hash: <span style="color:#008017>String</span>'''

Revision as of 20:15, 30 May 2017

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', true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39)
}
mp.events.add('playerJoin', playerJoinHandle)

See Also