openInventoryById

Description

Opens another player’s inventory for viewing or interaction.

Parameters

  • source (number): Source ID of the player opening the inventory.

  • playerid (string): Citizen ID of the target player.

Return Value

  • None

Example Use Case

ps.openInventoryById(source, "0987654321")
print("Opened player 0987654321's inventory.")

Last updated