[ESX] RS | Welcome Car v2 | 0.00ms Performance | Player Gift System | Fully Optimized & Configurable

A script by Resmon_Studio

No reviews yet.
[ESX] RS | Welcome Car v2 | 0.00ms Performance | Player Gift System | Fully Optimized & Configurable main image

Price

Unknown

Full Description

Resmon Studio Presents!

Vehicle Selection: Choose Your Ride

Players have the opportunity to choose one vehicle from multiple categories at any time, but only once.

Key Features

:small_blue_diamond: Webhook Integration
:small_blue_diamond: Exploit Protection
:small_blue_diamond: Customizable Frontend (HTML, CSS, JS)
:small_blue_diamond: Highly Configurable Settings: Use a single image for all vehicles or a different one for each
:small_blue_diamond: ESX exports, blips, categories, language options, vehicles, markers, coordinates, notifications, and more are changeable
:small_blue_diamond: Key system integration for Jaksam and MSK
:small_blue_diamond: SQL Data Integration
:small_blue_diamond: 0.00 ms Idle Performance
:small_blue_diamond: High Performance

Dependencies

:small_orange_diamond: ESX 1.1, ESX 1.2, ESX Legacy
:small_orange_diamond: MySQL / Oxmysql

Highy Optimized

rs_welcomecar_v2Resmon

Purchase on Tebex
Purchase ESX

Other scripts
rs_dutysystem
rs_namechange
rs_numberchange
rs_moneywash
rs_carwash

Code is accessible No / Yes = Config, HTML, CSS, JS
Subscription-based No
Lines (approximately) 2000
Requirements ESX 1.1 ESX 1.2 ESX Legacy
Support Yes
Config = {}

-- Coordinates for the location where players can open the vehicle menu
Config.Coords = vector3(-984.13, -2640.72, 13.99)

-- Set to true to use a single image for all vehicles, otherwise each vehicle will have its own image
Config.UseOneImage = true

-- If true, it will display an informational notification when the vehicle selection menu opens
Config.UseInfoText = true

Config.Options = {
    UseOldEsx = false,         -- Option to use old ESX method (true) or new ESX export method (false)
    EnableGiveKeys = false,    -- Option to enable or disable the key-giving feature
    KeySystem = "jaksam",      -- Choice of key system ("jaksam" for Jaksam's system or "msk" for MSK's system)
    UseAdvancedGarage = false, -- Whether to use advanced garage functionality
    AdvancedGarage = "Hayes Autos", -- The garage to store the vehicle in if using advanced garage
    SpawnVehicle = false,      -- Whether to spawn the vehicle immediately after granting it
    SpawnCoords = {
        coords = vector3(-995.79, -2637.56, 13.42), -- Coordinates where the vehicle will spawn if SpawnVehicle is true
        heading = 331.57  -- Heading for the vehicle spawn direction
    },
    SharedObject = {
        client = "esx:getSharedObject",   -- Event to get ESX object on the client-side
        server = "esx:getSharedObject",   -- Event to get ESX object on the server-side
    }
}

Config.Blip = {
    enabled = true,            -- Enable or disable the blip on the map
    id = 523,                  -- Blip ID (defines the type of blip icon)
    scale = 1.0,               -- Blip size/scale
    color = 75,                -- Blip color (ID for the color)
    Name = "Welcomecar",       -- Blip name (shown on the map)
}

Config.Marker = {
    Type = 21,                 -- Marker type (ID for the type of marker)
    Size = vector3(1.0, 1.0, 1.0), -- Size of the marker (X, Y, Z)
    Color = { r = 255, g = 0, b = 0, a = 144 }, -- RGBA color values for the marker
    BobUpAndDown = false,      -- Should the marker bob up and down (true/false)
    FaceCamera = true,         -- Should the marker always face the camera (true/false)
    Rotate = false,            -- Should the marker rotate (true/false)
    TextureDict = nil,         -- Optional texture dictionary for the marker (use nil if not needed)
    TextureName = nil,         -- Optional texture name for the marker (use nil if not needed)
    DrawOnEntities = false     -- Should the marker be drawn on entities (true/false)
}

Config.Plate = {
    UseSpace = false,            -- Option to include a space between letters and numbers on the license plate (true/false)
    Letters = 3,                 -- Number of letters on the plate (e.g., 'ABCD' if set to 4)
    Numbers = 3,                 -- Number of numbers on the plate (e.g., '1234' if set to 4)
    LetterCharset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", -- The set of characters that can be used for the letter portion of the plate
    NumberCharset = "0123456789", -- The set of digits that can be used for the number portion of the plate
    MaxPlates = 9999999          -- Maximum number of unique plates that can be generated (affects randomness and uniqueness)
}

Config.Categories = {
    "compacts",
    "coupes",
    "offroad",
    "sports"
}

Config.Vehicles = {
    [1] = { model = "blista", categorie = "compacts" },
    [2] = { model = "exemplar", categorie = "coupes" },  
    [3] = { model = "windsor", categorie = "coupes" },
    [4] = { model = "everon", categorie = "offroad" },
    [5] = { model = "freecrawler", categorie = "offroad" },
    [6] = { model = "deveste", categorie = "sports" },
    [7] = { model = "furoregt", categorie = "sports" }
}

Config.Language = {
    WelcomeCarMessage = "You have already collected your welcome vehicle!",
    HelpNotificationText = "Press [E] to interact",
    ShowNotificationMessage = "The vehicle with license plate %s has been delivered to your garage.",
    InfoText = "Choose your car wisely, as you can only receive it once.",
    SomethingWrong = "Something went wrong."
}

function ShowHelpNotify(msg, E)
    ESX.ShowHelpNotification(msg, E)
    -- exports["rs_hud"]:HelpNotify(msg, E)
end  

function Notify(msg)
    TriggerEvent('esx:showNotification', msg)
    -- TriggerEvent('rs_notify', 'Welcomecar', msg , 'info', 5000)
end


CFG = {}

CFG.Webhooks = {
    Color = "16777215",
    Author = "ResmonStudio",
    AuthorURL = "https://cdn.discordapp.com/attachments/1115190062653640707/1224363148065374248/avatar.png?ex=661d380a&is=660ac30a&hm=5e7415d1f27e134352a3b2f46de4a0d0284569998c5852f6ca187569a842336e&",
    ThumbURL = "https://cdn.discordapp.com/attachments/1115190062653640707/1224363148065374248/avatar.png?ex=661d380a&is=660ac30a&hm=5e7415d1f27e134352a3b2f46de4a0d0284569998c5852f6ca187569a842336e&",
    Username = "RS | Logs",
    Webhooks = {
        welcome = {'PUT_YOUR_WEBHOOK_HERE'},
    }
}