SendNativeToAllPlayers

From GT-MP
Jump to: navigation, search
SendNativeToAllPlayers
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Sends a Native Call to all player.

Syntax

API.sendNativeToAllPlayers(ulong longHash, params object[] args);

Required Arguments

  • longHash: parameter input should be in ulong type.
  • args: parameter input should be in object type.

Usage example(s)

(invalid example hash, but is used as an example)

   API.sendNativeToAllPlayers(0xE1EF3C1216AFF2CD, weapon, ammo);

References

http://www.dev-c.com/nativedb/