Configuration
All Wasabi Scripts contain various editable and unobscured files containing, exports, client and server functions, configuration methods and more. This is the main configuration file for our wasabi_uikit resource.
View Configuration
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
Config, Strings = {}, {}
---------------------------------------------------- LANGUAGE SETTINGS ------------------------------------------------------------
-- Options are 'en' (English), 'fr' (French), 'cn' (Chinese Simplified), 'tw' (Chinese Traditional), 'de' (German), --
-- 'it' (Italian), 'jp' (Japanese), 'ko' (Korean), 'pl' (Polish), 'pt' (Portuguese), 'es' (Spanish), 'hi' (Hindi), 'nl' (Dutch) --
-----------------------------------------------------------------------------------------------------------------------------------
Config.Language = 'en'
Config.Framework = 'auto' -- If you want to use the qb-core framework (auto | qb | esx) for a job check, can be edited in game/client/_customize/customize.lua
Config.CheckForUpdates = true -- If you want to check for updates (Recommended)
Config.EnableTestCommands = true -- If you want to enable the test commands
Config.UseTargetOnDialogPeds = false -- If you want to use the target on dialog peds
Config.TargetSystem = 'qb-target' -- If you want to use the target on dialog peds (qb-target | ox_target)
Config.DrawTextUI = {
Position = 'bottom', -- (right | left | top | bottom)
style = 'keyBottom' -- (normal | keyTop | keyBottom | keySeparated)
}
Config.ProgressBar = {
marginBottom = 10, -- The margin bottom of the progress bar
cancelCommand = 'cancelpb', -- The command to cancel the progress bar
cancelKey = 'X', -- The key to cancel the progress bar
color = '#00a86d', -- Default color for the progress bar primary filling color
}
Config.Notify = {
Position = 'topright', -- (topright | right | bottom | top | left | topleft)
Duration = 5000, -- Duration of the notification in milliseconds
circleProgress = false, -- If you want to use a circle progress bar in the notification
Types = {
success = {
color = '#00a86d',
icon = 'fas fa-check-circle'
},
error = {
color = '#fa4040',
icon = 'fas fa-times-circle'
},
warning = {
color = '#f7b500',
icon = 'fas fa-exclamation-triangle'
},
info = {
color = '#007bff',
icon = 'fas fa-info-circle'
}
}
}
Config.ActionPanel = {
useProgressBar = true, -- If you want to use a progress bar under the buttons
}
Config.Dialog = {
{
id = 1, -- the id of the dialog
icon = 'fa-solid fa-headset', -- the icon to display on the dialog (https://fontawesome.com/icons)
npc = 's_m_m_movspace_01', -- the npc to display the dialog
coords = vector4(-33.21, -1103.53, 25.42, 66.46), -- the coordinates of the npc
title = 'Dealership Employee', -- the title to display on the dialog
description = 'Welcome, what are you looking for?', -- the description to display on the dialog
options = {
{
text = 'I want to buy a car', -- the text to display on the button
event = 'wasabi_uikit:buyCar', -- the event to call when the option is selected
type = 'client' -- if the event is client or server sided
},
{
text = 'I want to talk to a manager',
event = 'wasabi_uikit:talkToManager',
type = 'client'
}
}
},
{
id = 2,
icon = 'fa-solid fa-wrench',
npc = 's_m_y_armymech_01',
coords = vector4(-35.15, -1085.96, 25.42, 209.74),
title = 'Dealership Mechanic',
description = 'Hello, how can I help you?',
options = {
{
text = 'I want to repair my car',
event = 'wasabi_uikit:repairCar',
type = 'client'
}
}
}
}
Config.ContextMenu = {
Position = 'centerright', -- (topright | topleft | bottomright | bottomleft | centerright | centerleft)
Color = '#00a86d', -- Default scrollbar color ('#00a86d') - can be overridden if defined in RegisterContextMenu
}
Config.RadialMenu = {
Size = 130, -- The size of the radial menu
FontSize = 11, -- The font size of the radial menu
BorderColor = '#00a86d', -- The color of the border of the radial menu
RadialMenuCommand = 'radialmenu', -- The command to open the radial menu
RadialMenuKey = 'G', -- The key to open the radial menu
HoldToOpen = false, -- If you want to hold the key to keep the radial menu open
Options = {
{
id = 'citizen',
title = 'Citizen',
icon = 'user',
submenu = { -- You can add a total of 16 options, if you want to add more, you can add them to the submenu of the submenu
{
id = 'citizen_menu', -- id of the option
title = 'Give Number', -- title of the option
icon = 'phone', -- icon from https://fontawesome.com/icons
event = 'wasabi_uikit:giveNumber', -- example events, you NEED to alter this to your own events
eventSide = 'client', -- (client | server | command)
data = { -- variables to pass to the event if necessary
data1 = 'data1',
data2 = 'data2',
}
},
{
id = 'citizen_menu_option',
title = 'Rob Player',
icon = 'user-secret',
event = 'wasabi_uikit:openCitizenMenuOption',
eventSide = 'client',
},
{
id = 'citizen_menu_option',
title = 'Escort Player',
icon = 'person-walking',
event = 'wasabi_uikit:openCitizenMenuOption',
eventSide = 'client',
},
{
id = 'citizen_menu_option',
title = 'Hostage',
icon = 'person-harassing',
event = 'wasabi_uikit:openCitizenMenuOption',
eventSide = 'client',
},
{
id = 'citizen_menu_option',
title = 'Put in Vehicle',
icon = 'car-side',
event = 'actionpanel',
eventSide = 'command',
},
{
id = 'citizen_menu_option',
title = 'Give Money',
icon = 'hand-holding-dollar',
event = 'wasabi_uikit:openCitizenMenuOption',
eventSide = 'server',
},
{
id = 'citizen_menu_option',
title = 'Sell Drugs',
icon = 'money-bill',
event = 'wasabi_uikit:openCitizenMenuOptionc',
eventSide = 'client',
},
{
id = 'citizen_menu_option',
title = 'Take out Vehicle',
icon = 'person-walking-dashed-line-arrow-right',
event = 'wasabi_uikit:openCitizenMenuOption',
eventSide = 'client',
},
}
},
{
id = 'police_menu',
title = 'Police',
icon = 'shield',
job = 'police',
submenu = {
{
id = 'police_actions',
title = 'Handcuff',
icon = 'handcuffs',
event = 'police:handcuff',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Search',
icon = 'magnifying-glass',
event = 'police:search',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Escort',
icon = 'person-walking',
event = 'police:escort',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Put in Vehicle',
icon = 'car',
event = 'police:putInVehicle',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Remove Vehicle',
icon = 'car-side',
event = 'police:removeFromVehicle',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Check ID',
icon = 'id-card',
event = 'police:checkId',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Check Vehicle',
icon = 'car-rear',
event = 'police:checkVehicle',
eventSide = 'client',
},
{
id = 'police_actions',
title = 'Impound Vehicle',
icon = 'truck-ramp-box',
event = 'police:impoundVehicle',
eventSide = 'client',
},
},
},
{
id = 'emergency',
title = 'General',
icon = 'gear',
submenu = {
{
id = 'emergency_menu',
title = 'Call EMS',
icon = 'ambulance',
event = 'wasabi_uikit:callEMS',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Call Police',
icon = 'shield',
event = 'wasabi_uikit:callPolice',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Call Mechanic',
icon = 'wrench',
event = 'wasabi_uikit:callMechanic',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Call Taxi',
icon = 'taxi',
event = 'wasabi_uikit:callTaxi',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Report Location',
icon = 'location-crosshairs',
event = 'wasabi_uikit:reportLocation',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Request Tow',
icon = 'truck',
event = 'wasabi_uikit:requestTow',
eventSide = 'client',
}
}
},
{
id = 'emergency',
title = 'Clothing',
icon = 'shirt',
submenu = {
{
id = 'emergency_menu',
title = 'T-Shirt',
icon = 'shirt',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Hoodie',
icon = 'person-dress',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Jacket',
icon = 'vest',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Pants',
icon = 'socks',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Shoes',
icon = 'shoe-prints',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Hat',
icon = 'hat-cowboy',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Glasses',
icon = 'glasses',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Mask',
icon = 'mask',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
}
},
{
id = 'emergency',
title = 'Vehicle',
icon = 'car-side',
onlyInVehicle = true,
submenu = {
{
id = 'job_menu',
title = 'Open Doors',
icon = 'door-open',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
submenu = {
{
id = 'asdasd',
title = 'Open Driver',
icon = 'door-open',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
},
{
id = 'asdasd',
title = 'Open Passenger',
icon = 'door-open',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
},
{
id = 'asdasd',
title = 'Open Hood',
icon = 'car-battery',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
},
{
id = 'asdasd',
title = 'Open Trunk',
icon = 'box',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
}
}
},
{
id = 'emergency_menu',
title = 'Open Windows',
icon = 'window-maximize',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
submenu = {
{
id = 'asdasd',
title = 'Open Driver',
icon = 'window-maximize',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
},
{
id = 'asdasd',
title = 'Open Passenger',
icon = 'window-maximize',
event = 'wasabi_uikit:openJobMenu',
eventSide = 'client',
},
}
},
{
id = 'emergency_menu',
title = 'Unlock Vehicle',
icon = 'unlock',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Lock Vehicle',
icon = 'lock',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Set on GPS',
icon = 'location-dot',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
{
id = 'emergency_menu',
title = 'Give Vehicle',
icon = 'key',
event = 'wasabi_uikit:openEmergencyMenu',
eventSide = 'client',
},
}
},
{
id = 'house_menu',
title = 'House',
icon = 'house',
submenu = {
{
id = 'house_menu',
title = 'Enter House',
icon = 'door-open',
event = 'wasabi_uikit:openHouseMenu',
eventSide = 'client',
},
{
id = 'house_menu',
title = 'Exit House',
icon = 'door-open',
event = 'wasabi_uikit:openHouseMenu',
eventSide = 'client',
},
{
id = 'house_menu',
title = 'Give Keys',
icon = 'key',
event = 'wasabi_uikit:openHouseMenu',
eventSide = 'client',
},
{
id = 'house_menu',
title = 'Remove Keys',
icon = 'key',
event = 'wasabi_uikit:openHouseMenu',
eventSide = 'client',
},
}
}
}
}