Area Notify Script

:shopping_cart:Purchase here: Buy here 8.99€ + VAT

:movie_camera: Preview: Link

Config
_4p = {
    Framework = "esx", -- Framework you are using (esx, qbcore or custom)

    area_polyzone = {
        polyzones = {
            USA = {
                area_label = "USA", -- Area label
                coords = { -- Coords of the area
                    vector2(-4478.5391, 1230.3088),
                    vector2(-2957.3728, 1611.7435),
                    vector2(-2989.0518, 1625.7596),
                    vector2(-2970.4858, 1642.7698),
                },
                minZ = -100.0, -- Min Z of the area
                maxZ = 1250.0, -- Max Z of the area
                debug = false, -- If you want to see the area in the game (for testing)
            },
        },
    },

    lang = "en", -- Language of the script (en, de, fr, es, it, nl, pl)
}

_4p.notify = function(message, source)
    if IsDuplicityVersion() then
        if _4p.Framework == "esx" then
            TriggerClientEvent("esx:showNotification", source, message)
        elseif _4p.Framework == "qbcore" then
            TriggerClientEvent("QBCore:Notify", source, message)
        else
            print("^1[4p-areanotify] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    else
        if _4p.Framework == "esx" then
            Framework.object.ShowNotification(message)
        elseif _4p.Framework == "qbcore" then
            Framework.object.Functions.Notify(message)
        else
            print("^1[4p-areanotify] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    end
end

_4p.language = {
    ["en"] = {
        you_are_located_in = "You are now located in",
        area = "Area",
    }, 
    ["de"] = {
        you_are_located_in = "Du befindest dich jetzt im",
        area = "Gebiet",
    }, 
}

If you’re experiencing any issues, don’t worry! We’ve got you covered. Just open a ticket in our Discord, and our team will work hard to assist you.

:package: Dependencies: PolyZone

:hammer_and_wrench: Key Features:

🡂 Edit or delete the default Zones
🡂 Set own Polyzone coordinates
🡂 Supports ESX and QBCore
🡂 Multi-language notifications
🡂 Adjustable notification colors and icons
🡂 Debug mode for testing zones in-game

Upgrade your server today with this versatile area notification system and ensure your players stay informed no matter where they go!



Code is accessible No
Subscription-based No
Lines (approximately) 40
Requirements PolyZone, ESX/QB-CORE
Support Yes
6 Likes

Never seen something like that before. Nice work!

6 Likes

Woww!

6 Likes

This is very cool!

7 Likes

Thank you!

5 Likes