> For the complete documentation index, see [llms.txt](https://simpanan.fivem.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simpanan.fivem.id/server/removeitem.md).

# removeItem

apapun framework kamu, function ini tetap bisa digunakan

```lua
xxx:removeItem(src, data)
```

```lua
xxx:removeItem(1, {item = 'phone', count = 1})
```

```lua
if xxx:removeItem(1, {item = 'phone', count = 1}) then
    xxx:notif(1, 'berhasil mengurangi 1x phone', 'success', 3000)
end
```

### kamu juga bisa pakai cara ini untuk lebih cepat tanpa table.

```lua
xxx:removeItem(src, namaitem, jumlah, metadata, slot)
```

```lua
xxx:removeItem(1, 'sandwich', 1)
```

```lua
if xxx:removeItem(1, 'phone', 1) then
    xxx:notif(1, 'berhasil mengurangi 1x phone', 'success', 3000)
end
```
