Aller au contenu

10 % de remise, appliquée au paiementBlack Friday : −30 % jusqu’au 1 déc.Modèles de serveurModèles de serveur

RPScripts

Scripts de véhicules FiveM

Smart Motorways

London Studios Smart Motorways

London Studios
Frameworks:
  • ESX
  • QBCore
  • Qbox
  • vRP

Vérifié par le Lab RPScripts

  • Analyse statique : 1 ressource lue
Ce qui a été vérifié
Vérifier la compatibilité avec votre serveur

Détails

Frameworks
ESX, QBCore, Qbox, vRP
Version
1.0.0
Taille du fichier
10 Mo
Créateur
London Studios
Mis à jour
Conditions de licence et de support
  • Licence : pour votre propre serveur ou projet. Revente et partage interdits.
  • Mises à jour : lorsqu'un fichier plus récent est disponible, il apparaît dans les téléchargements de votre compte.
  • Support : accès au téléchargement et questions d'installation propres au produit.
Conditions de licence et de support

Description

Smart Motorways de London Studios ajoute à votre serveur FiveM des portiques d'autoroute avec limitations de vitesse dynamiques et panneaux de voies. Vous les contrôlez en temps réel depuis un panneau de contrôle en jeu.

Aperçu vidéo

Fonctionnalités

  • Panneau de contrôle - Notre panneau de contrôle en jeu permet à vos joueurs de régler facilement l'icône ou la vitesse affichée au-dessus des voies, en temps réel.
  • Modifications à distance - Les portiques d'autoroute peuvent être mis à jour sur toute la map avec une seule commande, grâce à une carte qui vous permet de sélectionner l'emplacement à modifier.
  • Système CCTV - Visualisez et déplacez facilement les caméras CCTV installées sur les portiques dans toute la map, depuis le panneau de contrôle.
  • Modes US / UK / EU - Smart Motorways prend en charge trois modes, US, UK et EU. Une large gamme de vitesses est donc disponible dès l'installation sur votre serveur.
  • Intégration Smart Signs - Smart Motorways est intégré à Smart Signs : si vous possédez les deux, vous pouvez ajouter des messages ou des icônes sur un nouveau panneau au-dessus de chaque portique.
  • Intégration Smart Speed Cameras - Smart Motorways est intégré à Smart Speed Cameras : si vous possédez les deux, les caméras de tous les portiques deviennent actives et s'adaptent dynamiquement à la limite de vitesse affichée au-dessus de chaque voie, ce qui aide à faire respecter les limitations.
  • Prise en charge des icônes - En plus des vitesses, nous proposons des icônes, dont une flèche gauche et une voie fermée.
  • Journalisation Discord - Notre ressource peut s'intégrer à Discord pour la journalisation par webhooks. Elle enregistre toute modification des portiques d'autoroute et conserve un historique.
  • Panneaux préconfigurés - Plus de 60 emplacements sont préconfigurés sur la map : Smart Motorways est donc prêt à l'emploi dès l'installation.
  • Modifications persistantes - Les changements de vitesse, de texte et d'icône sont enregistrés dans locations.json (configurable avec saveSpeedsOnChange, saveTextOnChange et saveIconOnChange), donc ils restent après un redémarrage. Vous pouvez effacer tous les panneaux avec la commande /resetsmartmotorway.
  • Textures émissives - Ces icônes restent lumineuses de jour comme de nuit, pour attirer l'attention des conducteurs à toute heure.
  • Prise en charge multi-voies - Nous prenons en charge les routes à deux, trois et quatre voies.
  • Ajout facile d'emplacements - Avec notre commande développeur, vous pouvez ajouter de nouveaux emplacements en jeu, sauvegardés automatiquement pour le prochain redémarrage.
  • Permissions - Les commandes /selectsign et de réinitialisation peuvent être limitées par permissions ACE ou par vérifications de métier, de groupe ou de permission ESX, QBCore, QBX et vRP.

Config

config = {

    -- We've included speed options for the UK, EU, and US based servers 
    -- Simply type "UK", "EU", or "US" to change the speed options 
    iconPack = "UK",

    -- If you add custom icons, you can add them here
    -- Speed-related icons will be used for speed cameras, and must contain the speed limit in the name as numbers only.
    -- E.g. an icon of speed_60 will be used for a speed limit of 60. An icon of 3_speed_40 would result in a speed limit of 340.
    -- Do NOT edit this section unless you know what you are doing and have modelled custom icons.
    iconPacks = {
        ["UK"] = {
            "arrow_left",
            "arrow_right",
            "red_x",
            "speed_20",
            "speed_30",
            "speed_40",
            "speed_50",
            "speed_60",
            "national_speed",
        },
        ["EU"] = {
            "arrow_left",
            "arrow_right",
            "red_x",
            "speed_20",
            "speed_30",
            "speed_40",
            "speed_50",
            "speed_60",
            "speed_70",
            "speed_80",
            "speed_90",
            "speed_100",
            "speed_110",
            "speed_120",
            "speed_130",
            "speed_140",
            "speed_150",
        },
        ["US"] = {
            "arrow_left",
            "arrow_right",
            "red_x",
            "bv_motorway_speed_15",
            "bv_motorway_speed_20",
            "bv_motorway_speed_25",
            "bv_motorway_speed_30",
            "bv_motorway_speed_35",
            "bv_motorway_speed_40",
            "bv_motorway_speed_45",
            "bv_motorway_speed_50",
            "bv_motorway_speed_55",
            "bv_motorway_speed_60",
            "bv_motorway_speed_65",
            "bv_motorway_speed_70",
            "bv_motorway_speed_75",
            "bv_motorway_speed_80",
            "bv_motorway_speed_85",
        },
    },


    cctvKeys = {
        up = {0, 172},
        down = {0, 173},
        left = {0, 174},
        right = {0, 175},
        leaveCam = {0, 200},
    },

    -- The distance in which the sign and its speed limits will load/unload at
    loadDistance = 200.0,

    -- This will enable debug printing on both the client and the server. This should be set to false most of the time.
    developerMode = false,

    integrations = {

        smartSpeedCameras = {
            enabled = false, -- Only enable if you have the Smart Speed Cameras resource installed and up to date 
            resourceName = "SmartSpeedCameras", -- This is the name of the resource which Smart Speed Cameras is installed under
            cooldown = 60, -- This is the cooldown in seconds between speed camera detections. This is to prevent spam fines.
        },

        smartSigns = {
            enabled = false, -- Only enable if you have the Smart Signs resource installed and up to date 
            resourceName = "SmartSigns", -- This is the name of the resource which Smart Signs is installed under
        }

    },

    saveSpeedsOnChange = true, -- If this is set to true, the speeds will be saved to locations.json when changed. If false, the speeds will reset on restart.
    saveTextOnChange = true, -- If this is set to true, the text will be saved to locations.json when changed. If false, the text will reset on restart.
    saveIconOnChange = true, -- If this is set to true, the icon will be

    
    closeMenuButton = {0, 177},

    -- This allows you to enable Discord logging for the signs
    -- You must add your webhook in sv_utils.lua
    logging = {
        enabled = false,
        displayName = "Smart Motorways",
        colour = 31487,
        title = "**New Sign Log**",
        icon = "https://i.imgur.com/dcOQmpA.jpg",
        footerIcon = "https://i.imgur.com/n3n7JNW.png",
        dateFormat = "%d-%m-%Y %H:%M:%S", -- Day-Month-Year Hour-Minute-Second
    },

    resetSignsCommand = {
        enabled = true,
        commandName = "resetsmartmotorway",
        Permissions = {
                EnablePermissions = false, -- If set to false, all below job checks will be disabled, even if they are enabled in the config.lua
                AcePermissions = {
                    Permission = "update.motorway.sign",
                    Enabled = false,
                },
            
                ESX = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use ESX job check
                        Jobs = {"police"} -- A user can have any of the following jobs, allowing you to add multiple
                    }
                },
                -- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
                vRP = {
                    Enabled = false,
                    CheckGroup = {
                        Enabled = false, -- Enable this to use vRP group check
                        Groups = {"police"}, -- A user can have any of the following groups, meaning you can add different jobs
                    },
                    CheckPermission = {
                        Enabled = false, -- Enable this to use vRP permission check
                        Permissions = {"police"} -- A user can have any of the following permissions, allowing you to add multiple
                    },
                },
                -- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
                QBCore = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use QBCore job check
                        Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                    },
                    CheckPermission = {
                        Enabled = false, -- Enable this to use QBCore permission check
                        Permissions = {"police"}, -- A user can have any of the following permissions, allowing you to add multiple
                    },
                },
                -- We've added QBX integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
                QBX = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use QBX job check
                        Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                    }
                },
        },
    },

    selectSignCommand = {
        commandName = "selectsign",
        Permissions = {
                EnablePermissions = false, -- If set to false, all below job checks will be disabled, even if they are enabled in the config.lua
                AcePermissions = {
                    Permission = "update.motorway.sign",
                    Enabled = false,
                },
            
                ESX = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use ESX job check
                        Jobs = {"police"} -- A user can have any of the following jobs, allowing you to add multiple
                    }
                },
                -- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
                vRP = {
                    Enabled = false,
                    CheckGroup = {
                        Enabled = false, -- Enable this to use vRP group check
                        Groups = {"police"}, -- A user can have any of the following groups, meaning you can add different jobs
                    },
                    CheckPermission = {
                        Enabled = false, -- Enable this to use vRP permission check
                        Permissions = {"police"} -- A user can have any of the following permissions, allowing you to add multiple
                    },
                },
                -- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
                QBCore = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use QBCore job check
                        Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                    },
                    CheckPermission = {
                        Enabled = false, -- Enable this to use QBCore permission check
                        Permissions = {"police"}, -- A user can have any of the following permissions, allowing you to add multiple
                    },
                },
                -- We've added QBX integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
                QBX = {
                    Enabled = false,
                    CheckJob = {
                        Enabled = false, -- Enable this to use QBX job check
                        Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                    }
                },
        },
    },

    directionColours = {
        ["north"] = 17,
        ["south"] = 18,
        ["east"] = 17,
        ["west"] = 18,
    },

    -- Here you can translate the resource into another language
    translations = {
        selectSignHelp = "Select a smart motorways sign",
        editingSign = "Now editing sign ID: ",
        hasBeenSetTo = " has been set to: ",
        speedLimitOfLane = "Speed limit of lane ",
        symbolOfLane = "Symbol of lane ",
        speedUnit = "mph",
        resetAll = "All lanes have been reset.",
        resetSignsHelp = "Reset all Smart Motorways",
    },

    -- We do not recommend editing below this section:
    -- The offsets which the signs are placed at in comparison to the sign
    spawnOffsets = {
        -- Offsets for two lane setups
        [2] = {
            [1] = {x = -3.9, y = -2.1, z = 3.65},
            [2] = {x = 1.61, y = -2.1, z = 3.65}
        },
        -- Offsets for three lane setups
        [3] = {
            [1] = {x = -6.04, y = -2.2, z = 3.65},
            [2] = {x = -0.925, y = -2.2, z = 3.65},
            [3] = {x = 3.82, y = -2.2, z = 3.65}
        },
        -- Offsets for four lane setups
        [4] = {
            [1] = {x = -9.7801, y = -2.2, z = 3.65},
            [2] = {x = -3.21, y = -2.2, z = 3.65},
            [3] = {x = 2.52, y = -2.1, z = 3.65},
            [4] = {x = 8.0501, y = -2.1, z = 3.65}
        }
    },

    -- Here you can define the various locations of the signs around the map.
    -- Here you can configure the sound effect which is played when a sign is successfully updated
    soundEffect = {
        enabled = true,
        name = "CONFIRM_BEEP",
        dict = "HUD_MINI_GAME_SOUNDSET",
    },

    gantryModels = {
        [2] = `2_lane`,
        [3] = `3_lane`,
        [4] = `4_lane`,
    },
}

Installation

  • Copiez le dossier SmartMotorways dans vos ressources et ajoutez ensure SmartMotorways à votre server.cfg.
  • Choisissez votre pack d'icônes (UK, EU ou US) et les permissions dans config.lua.
  • Pour la journalisation Discord, ajoutez votre propre webhook dans sv_utils.lua et réglez logging.enabled sur true.
Lire la suite

Configuration du serveur

Guide détaillé : installer un script FiveM

Vérifié : l'unique ressource de ce téléchargement.

London Studios Smart Motorways

Dans vos téléchargements
  • JG Dealerships
    • ESX
    • QBCore, Qbox
    Pas pour votre framework

    JG Dealerships

    JG Scripts

    30,00 $US21,00 $US
  • Autoradio
    • ESX
    • QBCore, vRP
    Pas pour votre framework

    Car Music System V3 [Standalone]

    14,99 $US10,49 $US
  • Simple ESX HUD – aperçu de la ressource FiveM
    • ESX
    • Standalone, QBCore, Qbox

    Airbags Script

    Big Daddy

    9,00 $US6,30 $US
  • mCarControl – aperçu
    • ESX
    • QBCore
    Pas pour votre framework

    CodeM mCarControl

    CodeM

    5,00 $US3,50 $US
  • Contract ESX – aperçu de l'objet contrat
    • ESX
    Pas pour votre framework

    okokContract

    okok Scripts

    13,99 $US9,79 $US
  • Quasar Vehiclekeys 2.0 – aperçu 2
    • ESX
    • Standalone, QBCore, Qbox

    Quasar Vehiclekeys

    Quasar Scripts

    10,00 $US7,00 $US
  • Dragstrip
    • Standalone

    The Most Realistic Drag Strip

    Danylo Kabanov

    18,99 $US13,29 $US
  • Best CarPlay – aperçu de la ressource FiveM
    • Standalone

    Best CarPlay

    6,49 $US4,54 $US