GetPlayerWeapon

From Onset Developer Wiki
Revision as of 14:16, 5 November 2019 by BlueMountains (talk | contribs)
GetPlayerWeapon

Type: Function
Context: Server & Client
Introduced: v1.0

Description

__EDIT_ME__

Syntax

GetPlayerWeapon(player [, weaponslot])
Client Syntax
GetPlayerWeapon(weaponslot)

Parameters

  • player
    The player identifier.
  • weaponslot (optional)
    The weapon slot.

Return Value

  • Returns weapon id, ammo.

Client Return Value

  • Returns weapon id, ammo, ammo in magazine.

Example

__EDIT_ME__

See also

__EDIT_ME__