# Inventory

> Read or remove player inventory items through Base's configured framework bridge.

**Server only · sky_base.** `source` is a player server ID and `itemName` is the internal inventory item key.

<table>
<thead>
  <tr>
    <th>
      Export
    </th>
    
    <th>
      Returns
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GetInventoryItemCount(source, itemName)
      </code>
    </td>
    
    <td>
      Non-negative item count; <code>
        0
      </code>
      
       for invalid input or an unavailable item lookup
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        RemoveInventoryItem(source, itemName, amount)
      </code>
    </td>
    
    <td>
      Removed quantity; <code>
        0
      </code>
      
       when removal does not succeed or the player lacks the requested quantity
    </td>
  </tr>
</tbody>
</table>

```lua [server.lua]
local count = exports["sky_base"]:GetInventoryItemCount(playerId, "radio")
-- Run only after your server has authorized this removal.
local removed = exports["sky_base"]:RemoveInventoryItem(playerId, "radio", 1)
```

Pass a positive integer quantity. The export checks the count, calls the configured item-removal bridge and checks the result. It does not authorize a search, confiscation or purchase on behalf of your resource.

For station storage, use [Jobs Base storage exports](/docs/base/jobs-base/server-exports/storage), which take a storage ID and job/grade context.
