Functions
Server
Inventory
CreateDropFromPlayer

CreateDropFromPlayer

Creates a new drop with the contents of a player's inventory.

exports.ox_inventory:CreateDropFromPlayer(playerId)
  • playerId: number

Return:

  • dropId: string

Example

local dropId = exports.ox_inventory:CreateDropFromPlayer(1)