API
Framework Bridge (Client-side)
Framework.GetPlayerData()
local playerData = Framework.GetPlayerData()
-- Returns: tableFramework.IsPlayerLoaded()
local isLoaded = Framework.IsPlayerLoaded()
-- Returns: booleanFramework.GetPlayerJob()
local job = Framework.GetPlayerJob()
-- Returns: tableFramework.ShowNotification(message, type, duration)
Framework.ShowNotification("Hello World!", "success", 5000)
-- message: string - notification text
-- type: string - "success", "error", "info", "warn" (optional, default: "info")
-- duration: number - duration in ms (optional, default: 3500)Framework Bridge (Server-side)
Framework.GetPlayer(source)
Framework.GetPlayerIdentifier(source)
Framework.GetPlayerJob(source)
Framework.AddMoney(source, amount, moneyType)
Framework.RemoveMoney(source, amount, moneyType)
Framework.RegisterUseableItem(itemName, callback)
Framework.ShowNotification(source, message, type, duration)
Inventory System (Client-side)
Inventory.CloseInventory()
Inventory System (Server-side)
Inventory.AddItem(source, item, amount, slot, info)
Inventory.RemoveItem(source, item, amount, slot)
Inventory.GetItem(source, item)
Inventory.HasItem(source, item, amount)
Inventory.GetItemCount(source, item)
Functions (Client-side)
API.SetEntityLookAtEntity(entity, target)
API.ShowHelpNotify(text)
API.CreateBoxZone(data)
API.AddTargetEntity(entity, data)
API.RemoveZone(id)
Utility Functions
Utils.Debug(message, level)
Utils.IsResourceRunning(resourceName)
Utils.Round(num, decimals)
_L(...)
Event System
Ready Events
Player Events
Global Variables
Last updated