SendNativeToPlayersInRange

From GTA Network Wiki
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

void NAPI.Native.SendNativeToPlayersInRange(Vector3 pos, float range, ulong/Hash 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 or Hash type.

Optional arguments

  • args: all the arguments for the native in any type.

Usage example(s)

(Invalid hash, is just used as an example)

NAPI.Native.SendNativeToPlayersInRange(myPos, 50f, 0xE1EF3C1216AFF2CD, weapons, ammo);

Changelog

Version Description
1.0 Release.

References

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

https://cdn.rage.mp/public/natives/