FWB STUDIO
Visit Store
  • Fwb Studios
    • 👋Welcome to FWB STUDIOS
      • FWB STUDIOS
    • ❓Common Questions
    • ⬆️How to Get Updates On Scripts
  • FiveM Escrow Errors
    • 🛠️ERRORS
      • ⚠️Is my error caused by FiveM escrow system?
      • ❓Failed to verify protected resource
      • ❓What steps should be taken if there are still errors?
  • How To Do This
    • 🛠️Install FwB Scripts
      • 5️ESX/QB Installation
  • FS SCRIPTS
    • 🌉Bridge
      • 📋Installation
      • Logs Setup
      • Integration
        • 📖Client_Override
        • 📖Server_Override
      • ❗Common Issues
    • 💳Fraud System
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 👠Skitz
      • 📖[ESX/QB] Config Files
      • 📖Unlocked FIle
      • 📋Installation
      • ⚒️Functions/Exports
      • ❗Common Issues
    • 🦱Weave Wear
      • 📖[ESX/QB] Config Files
      • 📖Unlocked FIle
      • 📋Installation
      • ⚒️Functions/Exports
      • ❗Common Issues
    • ⌛Safezone Creator
      • 📖[ESX/QB] Config Files
      • 📖Unlocked FIle
      • 📋Installation
      • ❗Common Issues
    • 🍌Useable Foods
      • 📋Installation
      • ❗Common Issues
    • 🍕Pizza Shop
      • 📖[ESX/QB] Config
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 🍔Burger Shop
      • 📖[ESX/QB] Config
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 📱Trap Phone
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 🚗Carwipe
      • 📖[ESX/QB] Config Files
      • 📄Send Vehicle Garage
      • 📖Unlocked FIle
      • 📋Installation
      • 📖Exports
      • ❗Common Issues
    • 📦Placeables
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • Money As Item in Ox Inventory
      • 📖Integrations
      • 🧾Exports / Functions
      • ❗Common Issues
    • 🚬Smoking
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📖Integrations
      • 🧾Exports / Functions
      • ❗Common Issues
    • 🌱White Widow
      • 📖[ESX] ALL Configs Files
      • 📖[QBCore] ALL Config Files
      • 📋Installation
      • 📖Integrations
      • 🧾Exports / Functions
      • ❗Common Issues
    • 👕Clothing As Item
      • 📖[ESX] ALL Configs Files
      • 📖[QBCore] ALL Config Files
      • 📋Installation
      • 📖Integrations
      • 📖Item Whitelist
      • ❗Common Issues
    • 💎Ice Box
      • 📖[ESX] ALL Configs Files
      • 📖[QBCore] ALL Config Files
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 🔫Switch
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📖Integrations
      • ❗Common Issues
    • 🔫Gun Jamming
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • ❗Common Issues
    • 👀Lashes Saloon
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • ❗Common Issues
    • 💅Nails Saloon
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • ❗Common Issues
    • 🕐Duty System
      • 📖[ESX] Config Files
      • 📖[QB] Config Files
      • 📋Installation
      • 🧾Exports / Functions
      • ❗Common Issues
    • 🦱Wigs Bundle
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📋Create New Wigs
    • 🚗Chop Shop
      • 📖[ESX] Config Files
      • 📖[QBCore] Config Files
      • 📋Installation
      • 📋Exports (Optional)
      • ❗Copy of Common Issues
Powered by GitBook
On this page
  1. FS SCRIPTS
  2. Bridge
  3. Integration

Server_Override

Resource Integrations guide with other resources.

Copy Any of this code into fs_bridge/unlocked/server.lua

Kick Player:

To Override Ban Player System Please copy this below code in fs_bridge/unlocked/server.lua

Override.Kick = function(source, reason)
    -- write your own function override kick function
    
end
Ban Player:

To Override Ban Player System Please copy this below code in fs_bridge/unlocked/server.lua

Override.BanPlayer = function(source, reason)
    --put your anticheat code here to ban player 

end
Add Society Money:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.AddSocietyMoney = function(job, money)
    -- example code
    exports.okokBanking:AddMoney(job, money)
end
Remove Society Money:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.RemoveSocietyMoney = function(job, money)
    --example code
    exports.okokBanking:RemoveMoney(job, money)
end
Get Society Money:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.GetSocietyMoney = function(job, money)
    --example code
    return exports.okokBanking:GetAccount(job)
end
Play Url Pos:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.PlayUrlPos = function(source, unique_sound_id, position, distance, url, volume, loop)
    -- example code -- xsound already configured just write here as exmaple code
    exports['xsound']:PlayUrlPos(source, unique_sound_id, url, volume, position, loop)
    exports['xsound']:Distance(unique_sound_id, distance)
    return id
end
DestroySound:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.DestroySound(source, unique_sound_id)
    -- exmaple code --xsound already configured this is just exmaple code
    exports['xsound']:Destroy(source, unique_sound_id)
end
Give Car Keys Player:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.GiveCarKeyPlayer = function(source, vehicle)
    -- example code:
    local plate = GetVehicleNumberPlateText(vehicle)
    exports.wasabi_carlock:GiveKey(source, plate)
end
RemoveCarKeyPlayer:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.RemoveCarKeyPlayer = function(source, vehicle)
    -- example code
    local plate = GetVehicleNumberPlateText(vehicle)
    exports.wasabi_carlock:RemoveKey(source, plate)
end
Give Car Key Job:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.GiveCarKeyJob = function(source, vehicle, jobs)
    -- write your keys code here don't worry if your vehicle keys don't support it 
    -- then script will trigger GiveCarKeysPlayer automatically
end
Remove Car Key Job:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

Override.RemoveCarKeyJob = function(source, vehicle, jobs)
    -- write your keys code here don't worry if your vehicle keys don't support it 
    -- then script will trigger RemoveCarKeyPlayer automatically
    
end
Send Email:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

function Override.SendEmail(source, emaildata)
    if type(source) == 'number' then
        -- write here code for if source is active player id then 

    elseif type(source) == 'string' then
        -- write here code for if source is identifier/citizenid then 

    end
end
Logs Creation:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

function Override.CreateLog(source, event, message, ...)
     -- use print(event) to get all kind of events like AddItem etc
     -- msg contain complete log 
     -- source is player id from which you can get all infromation about player

end
Dispatch system:

To Override this function Please copy this below code in fs_bridge/unlocked/server.lua

-- all values that argument can contain
--[[
argument = {
    Job = { 'police', 'sheriff', 'traffic', 'patrol' },
    Location = vector3(0, 0, 0),
    CallCode = { Code = '10-10', Title = 'Vehicle Pursuit' },
    Message = "A vehicle speeding at 120 km/h with license plate ABC123 was spotted.",
    Flashes = true,
    Image = "https://cdn.example.com/image.png", -- Use getSSURL if needed
    icon = 'fas fa-car', -- default or you could make this customizable
    Blip = {
        Sprite = 488,
        Scale = 1.5,
        Colour = 1,
        Flashes = true,
        Text = 'High-Speed Pursuit',
        Time = 60000, -- ms
        radius = 0,
    },
}
]]

function Override.AddCustomDispatch(argument)
     -- use print(event) to get all kind of events like AddItem etc
     -- msg contain complete log 
     -- source is player id from which you can get all infromation about player

end
PreviousClient_OverrideNextCommon Issues

Last updated 2 days ago

🌉
📖