S-Service
S-Service
  • S-SERVICE
    • ๐Ÿ’ฅAbout S-Service
  • Docs for our Products
    • ๐Ÿ”ซS-Gangwar
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • โœจS-FFA
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ‘จโ€โš•๏ธS-Revivestation
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ“ฆS-Postal
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆS-Factions
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ–ผ๏ธS-Loadingscreen
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ“ฉS-Identity
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿš—S-Garage
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐ŸŽซS-Namechange
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ—บ๏ธS-HUD
      • ๐Ÿ› ๏ธInstallation
        • HUD setup into ESX
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ””S-Notify
      • ๐Ÿ› ๏ธInstallation
        • Notify setup into ESX
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿค–S-Admin
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
        • Permissions
        • Commands
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿš˜S-Rental
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ“‚S-Scoreboard
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ’€S-Deathscreen
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ S-Housing
      • ๐Ÿ› ๏ธInstallation
        • Guides
          • Insert new Shells
        • Default Settings
          • Default Garages
          • Default Shells
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿง‚S-SaltyNUI
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ’ปS-Inventory
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ‘•S-Clothingshop
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐ŸŽ„S-Christmas
      • ๐Ÿ› ๏ธInstallation
        • Tebex Wrapper (Premium)
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ›„S-Warehouse
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐ŸชS-Dealerships
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ›’S-Shops
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ“ขS-Lifeinvader
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐Ÿ’ตS-Moneywash
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
    • ๐ŸŽ๏ธS-Platechange
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
      • ๐ŸงฉExports and Events
      • ๐Ÿ“ŒInformations / Typical Errors
Powered by GitBook
On this page
  1. Docs for our Products
  2. S-Inventory

Exports and Events

You need specific Exports or Events for your Scripts? Here is your way to go!

PreviousConfigurationNextInformations / Typical Errors

Last updated 2 hours ago

for code examples

Open a Stash Inventory

exports["S-Inventory"]:OpenStashInventory(uniqueid, stashid)
-- Uniqueid: A group for the Stash
-- Stashid: A unique ID for the Stash

Return/Open Player Inventory

exports["S-Inventory"]:ReturnToInventory()

Lock the Inventory for a Person

exports["S-Inventory"]:LockInventory(locked)
-- Locked: Whether the inventory of the person should be locked

Lock the Drop of Items (Preventing Duping in FFA's and Gangwars)

exports["S-Inventory"]:LockDropofItem(locked)
-- Locked: Whether the drop function of the inventory should be locked

Open a Players Inventory

exports["S-Inventory"]:ReturnToPlayerInventory(playerId)
-- PlayerID: The ID of the person which inventory should be opened

Return/Open to a Trunk

exports["S-Inventory"]:ReturnToTrunk(vehicle, glovebox)
-- Vehicle: The Vehicle where the Trunk should be opened
-- glovebox: boolean / true = Opens Glovebox / false = Opens Trunk

Search a Player (Selects the nearest Player)

TriggerEvent("SService:Server:SearchPlayer")
TriggerClientEvent("SService:Server:SearchPlayer", targetsrc)

Register a Stash

exports["S-Inventory"]:RegisterStash(stashid, name, maxweight, uniqueid)
-- StashID: The group ID for the stash
-- Name: Stash name
-- Maxweight: Max allowed weight in the stash
-- UniqueID: A unique ID for the Stash

Open a Stash Inventory

exports["S-Inventory"]:OpenStashInventory(targetsrc, uniqueid, stashid)
-- TargetSrc: The PlayerID where the stash should be opened
-- UniqueID: The unique ID of a registrated stash
-- StashID: The group stash name

Delete a Stash

exports["S-Inventory"]:DeleteStash(stashid)

Check if a Stash has Place for Items

exports["S-Inventory"]:CheckIfStashFree(uniqueid, stashid, itemadd, amountadd)

Delete a Item from the Stash

exports["S-Inventory"]:DeleteItem(uniqueid, stashid, itemname)

Check if a item Exists in the Stash

exports["S-Inventory"]:CheckIfItemExists(uniqueid, stashid, itemname)

Get data from Stash

exports["S-Inventory"]:GetDataFromStash(uniqueid, stashid)

Remove all Items from Stash

exports["S-Inventory"]:DeleteAllItems(uniqueid, stashid)

Get item data from a Stash

exports["S-Inventory"]:GetDataFromStashItems(uniqueid, stashid)

Get Weight of a Player

exports["S-Inventory"]:GetWeight(items)

Get Items of a Player

exports["S-Inventory"]:GetItems(targetsrc)

Transfer / Give a Item to a Player

exports["S-Inventory"]:TransferItem(xPlayer, xNewPlayer, item, amount)

Use item

exports["S-Inventory"]:UseItem(targetsrc, item, amount)

Check if a Player has Enough items

exports["S-Inventory"]:CheckIfPlayerHasEnoughItems(targetsrc, item, amount)

Get Weight of item

exports["S-Inventory"]:GetWeightOfItem(itemname, amount)

Search a Player by ID

TriggerEvent("SService:Server:SearchPlayer", targetsrc)
TriggerServerEvent("SService:Server:SearchPlayer", targetsrc)

If you need a Export that is not listed above, feel free to open a ticket at our Discord, so that we can implement your new Export in no time!

๐Ÿ’ป
๐Ÿงฉ
https://github.com/Chrisi816/Code-Beispiele-S-Service