Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

RemoveItem

Matias Salas edited this page Nov 4, 2020 · 1 revision
Player.RemoveItem(Source, Name, Amount)

This function remove an item from player inventory.

Arguments

Argument Type Optional Default Value Explanation
Source CitizenFX.Core.Player No - Player
Name string No - Item Name
Amount int No - Item Amount

Example

public void Example([FromSource] CitizenFX.Core.Player Source)
{
    Player.RemoveItem(Source, "Something", 3) //Removed item "Something" x3 from player
}

Clone this wiki locally