EquipPlayerWeaponSlot: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|weaponslot|The weapon slot (range 0 - 3)}}
{{FuncParam|weaponslot|The weapon slot (range 1 - 3)}}


{{FuncReturnValue|This function returns ''true''' on success.}}
{{FuncReturnValue|This function returns ''true''' on success.}}
Line 13: Line 13:
== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
EquipPlayerWeaponSlots(playerId, 1)
EquipPlayerWeaponSlot(playerId, 1)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{WeaponFunctions}}
{{ServerPlayerFunctions}}

Latest revision as of 11:03, 2 September 2020

EquipPlayerWeaponSlot

Type: Function
Context: Server
Introduced: v1.0

Description

Equip the specified weapon slot for the specified player.

Syntax

EquipPlayerWeaponSlot(player, weaponslot)

Parameters

  • player
    The player identifier.
  • weaponslot
    The weapon slot (range 1 - 3)

Return Value

  • This function returns true' on success.

Example

EquipPlayerWeaponSlot(playerId, 1)

See also