This commit is contained in:
2026-07-07 21:08:52 +02:00
commit 4c20cfc716
2613 changed files with 318021 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
EXTERNAL_EVENTS_NAMES = {
["esx:getSharedObject"] = nil, -- This is nil because it will be found automatically, change it to your one ONLY in the case it can't be found
["esx_skin:save"] = "esx_skin:save",
["esx_billing:sendBill"] = "esx_billing:sendBill",
["jsfour-idcard:open"] = "jsfour-idcard:open",
["esx_license:removeLicense"] = "esx_license:removeLicense",
["esx_license:addLicense"] = "esx_license:addLicense",
["esx_skin:getPlayerSkin"] = "esx_skin:getPlayerSkin",
-- Just used if you choose illenium instead of framework "outfit manager"
["illenium-appearance:client:openOutfitMenu"] = "illenium-appearance:client:openOutfitMenu",
["illenium-apearance:client:outfitsCommand"] = "illenium-apearance:client:outfitsCommand",
}
-- If true, the markers will be hidden when the player is not on duty, if false, they will be visible but it can't be used
COMPLETELY_HIDE_MARKERS_WHEN_OFF_DUTY = false
--[[
Default progressbar color (must be a hex code). Examples:
"#0fffef" - Light blue
"#ff0f0f" - Red
"#0f0fff" - Blue
]]
DEFAULT_PROGRESSBAR_COLOR = "#0fffef"
-- If you use an ambulance script that edits death behavior, making native IsPedDeadOrDying return false when the player is dead
function IsPedDeadOrDyingCustom(ped)
if not IsPedAPlayer(ped) then return IsPedDeadOrDying(ped) end -- Most likely you don't need to touch this
-- EDIT THIS FUNCTION TO RETURN TRUE WHEN THE PLAYER IS DEAD AND FALSE WHEN THE PLAYER IS ALIVE
local isPlayerDead = IsPedDeadOrDying(ped)
return isPlayerDead
end
-- This function is called right before a vehicle is parked in a permanent garage, you can return false to cancel the park
function PreVehicleParking(vehicle, plate, model)
-- Add your code here, return false only if you want to cancel the park
return true
end

View File

@@ -0,0 +1,16 @@
--[[
This is the plate format that will be used to create random plates
Configure the plate format using # for fixed characters
Examples:
"#LSPD#123" -> LSPD920, LSPD945, LSPD984 (as you can see, LSPD doesn't change)
"AB123CD" -> XC111EW, SI849TW, YS364KD
"CBZ 629" -> EGP 015, VHS 687, SXN 296
"72 QT 15" -> 63 VD 85, 27 AC 66, 63 HR 75
]]
EXAMPLE_PLATE = "AB123CD"
--[[
The shared object of the framework will refresh each X seconds. If for any reason you don't want it to refresh, set to nil
]]
SECONDS_TO_REFRESH_SHARED_OBJECT = nil

View File

@@ -0,0 +1,27 @@
-- You can edit the events on the right side if you for any reason don't use the default event name
EXTERNAL_EVENTS_NAMES = {
["esx:getSharedObject"] = nil, -- This is nil because it will be found automatically, change it to your one ONLY in the case it can't be found
["esx_society:registerSociety"] = "esx_society:registerSociety",
["esx_society:getSociety"] = "esx_society:getSociety",
["esx_addonaccount:getSharedAccount"] = "esx_addonaccount:getSharedAccount",
["esx_datastore:getSharedDataStore"] = "esx_datastore:getSharedDataStore",
["esx_datastore:getDataStore"] = "esx_datastore:getDataStore",
["esx_ambulancejob:revive"] = "esx_ambulancejob:revive",
["esx_ambulancejob:heal"] = "esx_ambulancejob:heal",
}
-- Skips or not if an item exists (useful with inventories that doesn't save items in database or in ESX.Items table, example ox_inventory)
SKIP_ITEM_EXISTS_CHECK = false
--[[
Default duty status on join for QBCore
true = on duty
false = off duty
nil = use qbcore default
]]
DEFAULT_DUTY_STATUS = true