SendNativeToPlayersInRange

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

Sends a Native Call to all players in range of a specified position.

Syntax

API.sendNativeToPlayersInRange(Vector3 pos, float range, ulong hash, params object[] args);

Required Arguments

  • pos: parameter input should be in Vector3 type.
  • range: parameter input should be in float type.
  • longHash: parameter input should be in ulong type.
  • args: parameter input should be in object type.

Usage example(s)

(Invalid hash, is just used as an example)

   API.sendNativeToPlayersInRange(myPos, 50f, 0xE1EF3C1216AFF2CD, weapons, ammo);

References

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