[QBCore|ESX]Crash Sites

Sinor Crash Sites

  • A random crash site event system using QBCore or ESX with lootable crates

Features

  • Automatic crash events on configurable cooldowns.

  • Lootable crates with randomized items and quantities.

  • Optional fire and smoke effects for immersion.

  • Configurable blip, icon, and color.

  • Server-wide synchronization — everyone sees the same crash.

  • Works with QBCore and ESX.

  • Supports qb-target and ox_target.

  • Auto-syncs for players who join mid-event.

Dependencies

  • QBCore or ESX.

  • qb-target or ox_target.

  • ox_lib.

Config

Config = {}

Config.Framework = 'QBCore' -- 'ESX' or 'QBCore'
Config.TargetSystem = 'qb-target' -- 'ox_target' or 'qb-target'
Config.crashCooldown = 3600 -- in seconds (1 hour) for every crash 3600
Config.DespawnTime = 10 -- Minutes before crash site disappears
Config.AdminCommand = 'createCrashSite' -- to create a crash site 
Config.Translate = {
    -- Notify
    looted = "You looted %dx %s",
    -- Announce
    title = 'Crash Sites',
    description = 'A Crash Occurred! Check Your Map.'
}
-- all crash sites and there settings
Config.Crashes = {
    -- small plane
    [1] = {
        sites = {
            vector3(2281.31, 3434.53, 64.1),
            vector3(1697.84, 2503.62, 44.43),
            vector3(1420.7, 2049.75, 117.35)
            -- add more sites here
        },
        Model = "prop_shamal_crash", -- Wreck model
        LootProp = 7, -- Number of loot props at crash site
        LootObjects = { "gr_prop_gr_rsply_crate03a", "prop_drop_armscrate_01b" }, --loot props models
        LootTable = { -- items that you receave from looting the props
            { item = "weapon_pistol", min = 1, max = 1 },
            { item = "bandage", min = 1, max = 5 },
            { item = "meth", min = 1, max = 2 }
        },
        blipsettings = {
            showblip = true,
            blink = true,
            blipicon = 251,
            blipscale = 1.6,
            blipcolor = 66,
            blipname = "Plane Crash Site"
        },
        fire = true, -- if the crash site is on fire
        firescale = 2.5, -- scale of the fire 
        smoke = true , -- if theres smoke out of the crash site
        smokescale = 5.0 -- scale of the smoke 
    },
    --  heli
    [2] = {
        sites = {
            vector3(1355.89, 4327.49, 37.97),
            vector3(347.02, 5189.94, 476.32),
            vector3(-1954.02, 3875.08, 230.97)
        }, 
        Model = "prop_crashed_heli", 
        LootProp = 5,
        LootObjects = { "gr_prop_gr_rsply_crate03a", "prop_drop_armscrate_01b" },
        LootTable = {
            { item = "weapon_pistol", min = 1, max = 1 },
            { item = "bandage", min = 1, max = 3 },
            { item = "meth", min = 1, max = 2 }
        },
        blipsettings = {
            showblip = true,
            blink = true,
            blipicon = 753,
            blipscale = 1.6,
            blipcolor = 66,
            blipname = "Heli Crash Site"
        },
        fire = true, 
        firescale = 2.5,
        smoke = true , 
        smokescale = 5.0
    },
    -- big plane
    [3] = {
        sites = {
            vector3(3501.53, 2567.07, 9.89),
            vector3(-1444.11, -1301.7, 2.85),
            vector3(997.4, -3191.67, 4.9),
            vector3(-1533.44, -2862.48, 13.31),
            vector3(1247.47, 3089.63, 39.86)
        },
        Model = "xs_combined2_dystplane_10", 
        LootProp = 15, 
        LootObjects = { "gr_prop_gr_rsply_crate03a", "prop_drop_armscrate_01b" },
        LootTable = {
            { item = "weapon_pistol", min = 1, max = 1 },
            { item = "bandage", min = 1, max = 3 },
            { item = "meth", min = 1, max = 2 }
        },
        blipsettings = {
            showblip = true,
            blink = true,
            blipicon = 16,
            blipscale = 1.6,
            blipcolor = 66,
            blipname = "Big Plane Crash Site"
        },
        fire = true, 
        firescale = 2.5, 
        smoke = true , 
        smokescale = 5.0 
    },
    -- train
    -- note : this train model dont have collision 
    [4] = {
        sites = {
            vector3(2606.01, -16.28, 92.4),
            vector3(2103.24, 6136.21, 59.47),
            vector3(-218.43, -1073.48, 28.29),
            vector3(162.01, -1795.72, 28.22)
            -- add more sites here
        },
        Model = "p_tram_crash_s",
        LootProp = 4,
        LootObjects = { "gr_prop_gr_rsply_crate03a", "prop_drop_armscrate_01b" },
        LootTable = {
            { item = "weapon_pistol", min = 1, max = 1 },
            { item = "bandage", min = 1, max = 3 },
            { item = "meth", min = 1, max = 2 }
        },
        blipsettings = {
            showblip = true,
            blink = true,
            blipicon = 795,
            blipscale = 1.6,
            blipcolor = 66,
            blipname = "Train Crash Site"
        },
        fire = true, 
        firescale = 2.5, 
        smoke = true , 
        smokescale = 5.0 
    },
    -- boat
    [5] = {
        sites = {
            vector3(-2058.21, 5133.45, -0.36),
            vector3(1783.14, -2820.4, 0.8),
            vector3(2348.06, 4493.51, 29.48)
        },
        Model = "hei_prop_heist_tug", 
        LootProp = 15, 
        LootObjects = { "gr_prop_gr_rsply_crate03a", "prop_drop_armscrate_01b" },
        LootTable = {
            { item = "weapon_pistol", min = 1, max = 1 },
            { item = "bandage", min = 1, max = 3 },
            { item = "meth", min = 1, max = 2 }
        },
        blipsettings = {
            showblip = true,
            blink = true,
            blipicon = 755,
            blipscale = 1.6,
            blipcolor = 66,
            blipname = "boat Crash Site"
        },
        fire = true, 
        firescale = 2.5, 
        smoke = true , 
        smokescale = 5.0 
    },
}

images

Preview :

Youtube

Tebex

Escrow
OpenSource

Other Scripts

QBCore/ESX|BaseBuilding
Standalone|AdvancedZombieSystem
Standalone|SurvivalHUD
Standalone|VehicleSpawne
QBCore/ESX|UsableItems
QBCore/ESX|VehicleCrafting
QBCore/ESX|Recycler
Standalone|SafeZone
QBCore/ESX|LootAreas
QBCore/ESX|LootPeds
QBCore/ESX|RadiationZones
Standalone|ZombieSystem
QBCore|Shop
QBCore|WeatherSync
QBCore/ESX|InGameMusic
QBCore/ESX|CamperHousing
standalone|SurvivalHUD
QBCore/ESX|LootBags
Vehicles|ApocalypticVehicles-V1
QBCore/ESX|HorseRiding
QBCore/ESX|Menu

Code is accessible N/A
Subscription-based No
Lines (approximately) 280+
Requirements ox_lib
Support Yes
5 Likes

Super cool script. Unfortunately, the target can’t be translated.

1 Like

ill fix it later mb

There is no error but it does not work. I use a command and nothing happens.

join discord well help u

I joined, where should I write or how can we contact you?

u can find a ticket channel to open one

Why the fuck is it tagged as a free resource but you are charging money for it open source. Kinda some bs because that is not FREE.

3 Likes

free to use yes , free to take or change the code no thanks :heart:

2 Likes

Then that is not free and this is a scam, changing/adding code utilizing free resources people want to make to fit their server better is what everyone does you do realize that right? wtf. Braindead take. Change the release to a paid resource if a money hungry approach is obviously there.

2 Likes

How is this a scam if CFX and Tebex both allow it?It’s free to use as is. If you want to modify the code, the open-source version is available. If you don’t appreciate our free resources, please don’t use them or engage with us. Accusing us of being money-hungry for releasing a free resource after others have charged for similar ones is absurd and very high IQ ,Have a great day supporting creators :heart:

1 Like

Charging for open source on a free resource is money hungry yet you have an escrow option that is free but contains locked code lol I know cfx made the change and allowed that but charging for FREE open source is greedy, FREE is FREE plain and simple you don’t pay for it. Clearly you don’t understand and want money hence why this should be a paid release period. Also for the record there is no “us” when it comes to creators and others releases since I didn’t say anything involving anyone else but you with your release only. Still a braindead take nothing high IQ about it, I have seen so many FREE releases that are escrow but none that are trying to make people pay with the ridiculous options you have set out. Greed is a bitch in this community.

3 Likes

You’re right, all creators like us are wrong, and we should all care about your opinion and quit development to become farmers.

I never said anything to begin with regarding any other creators period, just you and your release alone.

2 Likes

I should check the forums for other releases with similar complaints from you about the free, escrowed, and open-source aspects being paid.

If that is what you want to do with your time. I have seen many free releases and no one so far besides you is trying to profit from a FREE release completely open source lmao

3 Likes

I’ve seen a lot of free releaces with opensource version what is wrong with that, you prefer it to be all paid or what !

1 Like

it happen sometimes

IMO it’s up to his discretion what he does with his script. As long as he follows the rules he is allowed to charge for open source even though he offers it free for escrowed. Also 7 euros is nothing for open source.

Great script and keep up the good work!

3 Likes

thanks brother