Exports

Client Exports

exports["rm_throw"]:throwItem(itemName --[[string]])

Client Events

TriggerEvent("throwItem:client:useItem", itemName --[[string]])

Server Events

TriggerClientEvent("throwItem:client:useItem", source --[[number]], itemName --[[string]])

Examples

exports["rm_throw"]:throwItem("burger")

TriggerEvent("throwItem:client:useItem", "water")

TriggerClientEvent("throwItem:client:useItem", source, "WEAPON_PISTOL")

In order to use these triggers and exports, the item must be added to the throwItems object in rm_throw/cfg.lua.

Last updated