EquipPlayerWeaponSlot: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|EquipPlayerWeaponSlot(player, weaponslot)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Equip the specified weapon slot for the specified player.}}


{{FuncSyntax|EquipPlayerWeaponSlot(player, weaponslot)}}
{{FuncSyntax|EquipPlayerWeaponSlot(player, weaponslot)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|weaponslot|__EDIT_ME__}}
{{FuncParam|weaponslot|The weapon slot (range 0 - 3)}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua>
__EDIT_ME__
__EDIT_ME__
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:ServerFunctions}}

Revision as of 13:31, 20 November 2019

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 0 - 3)

Return Value

  • __EDIT_ME__

Example

__EDIT_ME__

See also

index.lua

Game

Colors

Miscellaneous

Time

Server

Explosion

Door

Network

NPC

Object

Package

Event

Pickup

Player

Text3D

Timer

Vehicles

HTTP