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
  • Client Side:
  • Unlocked File Path:
  • PATH : fs_fraud/client/unlocked.lua
  1. FS SCRIPTS
  2. Fraud System

Integrations

Resource Integrations guide with other resources.

Client Side:

Unlocked File Path:

PATH : fs_fraud/client/unlocked.lua

This file contain all functions you can edit like


-- This function should return true if player can successfully place then item
-- this functions should return false if player cannot place the item

function CanPlaceItem()
    -- you can code here if your housing provide function that if player inside house then return false else return true

    --[[
    -- qs housing
    if GetResourceState == 'started' then
        if exports['qs-housing']:getCurrentHouse() then --if player in house then player will not be able to place item
            return false
        end
    end
    ]]



    return true
end



function Draw3DText(position, text)
    SetTextScale(0.35, 0.35)
    SetTextFont(4)
    SetTextProportional(1)
    SetTextColour(255, 255, 255, 215)
    SetTextEntry("STRING")
    SetTextCentre(true)
    AddTextComponentString(text)
    SetDrawOrigin(position.x, position.y, position.z, 0)
    DrawText(0.0, 0.0)
    local factor = (string.len(text)) / 370
    DrawRect(0.0, 0.0 + 0.0125, 0.017 + factor, 0.03, 0, 0, 0, 75) --comment this out to remove background on 3dtext
    ClearDrawOrigin()
end

function ShowHelpNotification(msg)
    BeginTextCommandDisplayHelp('STRING')
    AddTextComponentSubstringPlayerName(msg)
    EndTextCommandDisplayHelp(0, false, true, -1)
end

-----------------------------------------------------------------------------
--- Devices Minigames
--- minigames which used on clonning devices at thetime of clonning items
----------------------------------------------------------------------------
function ClonnedCard()
    if GetResourceState('magni-cardswipe') == 'started' then
        local promise = promise.new()
        exports["magni-cardswipe"]:cardswipe(
            function() -- success callback
                promise:resolve(true)
            end,
            function()         -- failure callback
                promise:resolve(false) -- or promise:reject("Swipe failed") if you want to reject instead
            end
        )
        local success = Citizen.Await(promise)
        return success
    end

    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function ForgedCheque()
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function ClonnedGiftCard()
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function ClonnedLotteryTicket()
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function ClonnedSocialCard()
    if GetResourceState('magni-cardswipe') == 'started' then
        local promise = promise.new()
        exports["magni-cardswipe"]:cardswipe(
            function() -- success callback
                promise:resolve(true)
            end,
            function()         -- failure callback
                promise:resolve(false) -- or promise:reject("Swipe failed") if you want to reject instead
            end
        )
        local success = Citizen.Await(promise)
        return success
    end
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

-----------------------------------------------------------------------------
--- Selling Minigames
--- minigames which used on selling points
----------------------------------------------------------------------------
function AtmMiniGame_clonnedcard()
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function AtmMiniGame_clonnedcheque()
    local success = StartDataCrack(3) -- 3 is the difficulty level (1-5)
    if not success then
        FWB.Notification("Failed to pass secureity check.")
        return false
    end
    return true
end

function BankerMiniGame_clonnedcheque()
    return true
end

function GiftMinigame_clonnedGiftcard()
    return true
end

function LotteryMinigame_clonnedGiftcard()
    return true
end

function SocialMinigame_clonnedSocialCard()
    return true
end

------------------------------------------------------------------------------------

--!disable controls when shop open
local disable = false
function DisableControls(bool)
    disable = bool
    CreateThread(function()
        local acounts = { 44, 1, 2, 25, 36, 63, 64, 71, 72, 75, 106, 200 }
        while disable do
            for i = 1, #acounts do
                DisablePlayerFiring(Cache.Ped, true)
                DisableControlAction(0, acounts[i], true)
            end
            Wait(0)
        end
    end)
end

--!disable controls when tablet open
local disabletablecontrol = false
function DisableTabletControls(bool)
    disabletablecontrol = bool
    CreateThread(function()
        local acounts = { 44, 25, 36, 63, 64, 71, 72, 75, 106, 200 }
        while disabletablecontrol do
            for i = 1, #acounts do
                DisablePlayerFiring(Cache.Ped, true)
                DisableControlAction(0, acounts[i], true)
            end
            Wait(0)
        end
    end)
end

--[[*
*
* Dispatch Function
*
]]

function Dispatch(argument, item_name)
    -- dispatch default called by fs_bridge incase if u you want edit your on ur own to edit here
    FWB.AddCustomDispatch(argument)
end

PreviousInstallationNextCommon Issues

Last updated 5 days ago

💳
📖