Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

AddWeapon

Matias Salas edited this page Dec 27, 2020 · 2 revisions

Server-Side

Player.AddWeapon(WeaponName, Ammo, Components, Tint)

This function add a weapon to player inventory

Arguments

Argument Type Optional Default Value Explanation
WeaponName string No - Weapon name
Ammo integer Yes 0 Weapon ammo
Components array Yes nil Weapon components
Tint integer Yes 0 Weapon tint

Example

local _Player = Player(source)
_Player.AddWeapon("weapon_pistol", 60, {"Flashlight"}, 2)