This repository was archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
AddWeapon
Matias Salas edited this page Nov 4, 2020
·
2 revisions
Player.AddWeapon(Source, Name, Ammo, Component, Tint)This function add an weapon to player.
| Argument | Type | Optional | Default Value | Explanation |
|---|---|---|---|---|
| Source | CitizenFX.Core.Player | No | - | Player |
| Name | string | No | - | Weapon Name |
| Ammo | int | Yes | 0 | Weapon Ammo |
| Component | dynamic | Yes | null | Weapon Component |
| Tint | int | Yes | 1 | Weapon Tint |
public void Example([FromSource] CitizenFX.Core.Player Source)
{
Player.AddWeapon(Source, "weapon_revolver", 12) //Added revolver with 12 bullets to player
}Scripting Manual
- Events
- Data
Client Side
- UI Module
Server Side
-
Player Module
-
UI Module