🍬Business Details
Docs needed to run script on any ESX / QB server

Installation
1º Add the xex_businessdetails folder to your resources and initialize it on server.cfg.
start xex_businessdetails
Configuration
1º Make sure to select your framework Config.Framework
2º Fill Config.Command with your desired command name.
3º Configure config.lua with:
Label: Job label to show on list.
Name: Name of the job on DB.
minGradeToManipulate: Minimum grade should have to manipulate it (to open / close).
description = Business description.
img = image name matching /nui/images/ .
coordsForMarker = coords for mark on map when you click on the item.
open: Should be opened by default?
4º Configure configs.lua with you optional Discord webhook.
LB-Phone integration as app
-Copy / paste this code replacing ExecuteCommand('business') with your Config.BusinessCommand.
["businessapp"] = { -- do not have any spaces in this name
name = "Business", -- the name of the app
description = "Details about business in the city.", -- the description of the app
developer = "XeX", -- OPTIONAL the developer of the app
defaultApp = true, -- OPTIONAL if set to true, app should be added without having to download it,
size = 59812, -- OPTIONAL in kB
images = {"https://i.imgur.com/iCvCepD.jpg"}, -- OPTIONAL array of images for the app on the app store
ui = "", -- OPTIONAL
icon = "https://i.imgur.com/iCvCepD.jpg", -- OPTIONAL app icon
price = 0, -- OPTIONAL, Make players pay with in-game money to download the app
landscape = false, -- OPTIONAL, if set to true, the app will be displayed in landscape mode
onUse = function() -- OPTIONAL function to be called when the app is opened
-- do something
ExecuteCommand('business')
end
}
Last updated