Skip to main content

inventory:openStorage

note

clientside AND serverside

Parameters
title - string - Title of the storage container
id - string - Unique id for the the storage container
weight - number - Weight of the storage container
delay - number - Open delay for the container
jobs - array or string - Array of jobs that are allowed to access the container

Clientside

TriggerEvent('inventory:openStorage', "Locker", "locker-1", 100, 1000, {"police", "ambulance"})

Serverside

You can use this:

TriggerClientEvent('inventory:openStorage', source, "Locker", "locker-1", 100, 1000, {"police", "ambulance"})

or you can use this:

xPlayer.triggerEvent("inventory:openShop", "Locker", "locker-1", 100, 1000, {"police", "ambulance"})