Skip to main content

UseItem

ESX.UseItem(playerId, itemName)

This function is to force a player to use an item.

Arguments

ArgumentData TypeOptionalDefault ValueExplanation
playerIdnumberNo-Player server id
itemNamestringNo-An item