Configuration
Configuration options for txos_lib
ServerConfig = {
Logs = {
["default"] = "url_here",
-- Every one of our resources will try to use a category with the same name as the resource name - if its not found it will default to the default one
-- Example: You have TXOS Jewel installed
-- ["txos_jewel"] = "url_here",
},
ErrorTypes = {
error = {
colour = 16739179,
image = "https://cdn-icons-png.flaticon.com/512/463/463612.png",
label = "Error"
},
warning = {
colour = 16766566,
image = "https://cdn-icons-png.flaticon.com/512/595/595067.png",
label = "Warning"
},
success = {
colour = 6750115,
image = "https://cdn-icons-png.flaticon.com/512/4315/4315445.png",
label = "Success"
},
info = {
colour = 6928383,
image = "https://cdn-icons-png.flaticon.com/512/9195/9195785.png",
label = "Information"
},
},
}
Config = {
HelpTextStyle = "gta", --[[
valid options:
* luke - https://forum.cfx.re/t/standalone-free-text-ui/3987367
* cd - https://forum.cfx.re/t/free-release-draw-text-ui/1885313
* gta - https://i.gyazo.com/efe67de676ce26bf3d90972d6af7534a.png
* 3d-gta - https://i.gyazo.com/cfa770414d21aced89e1f3d2003813a0.png
* 3d - https://gyazo.com/0ad2bd85b8985bc3859d4c04a6712027
* esx - https://github.com/esx-framework/esx-legacy/tree/main/%5Besx%5D/esx_textui
* qbcore - https://github.com/qbcore-framework/qb-core
]]
Distancescale3DText = false, -- true: 3d text will be distance based (draws a bit more cpu), false: 3d text will be the same size, no matter the distance
DrawDistance = 100.0, -- marker draw distance
DefaultColour = {125, 75, 195, 100}, -- default marker colour, r, g, b, a
Keybindings = {
["primary"] = {
defaultKey = "E",
description = "Primary actions, default E"
},
["secondary"] = {
defaultKey = "G",
description = "Secondary actions, default G"
},
},
UseTarget = false, -- Determines if ox_target should be used across all resources
NotificationMapping = { -- Notification mapping for different notification types - if your notification system has different type names
["error"] = "error",
["success"] = "success",
["info"] = "info",
["warning"] = "warning"
-- Example of replacing one:
-- ["error"] = "error_notification" -- this will make the system use the error_notification type for error messages
}
}
Last updated