Configuration
Config.lua For QBCore Framework
ESX COMING SOON.....
Config = {}
Config.FuelSystem = 'legacyfuel' -- Options: 'legacyfuel', 'cdn-fuel'
Config.Interaction = 'ox-target' -- Options: 'textui', 'qb-target', 'ox-target'
Config.NotificationType = 'ox_lib' -- Options: 'ox_lib', 'qb_notify'
Config.PhoneType = '' -- Options: 'qs-phone', 'gks-phone', 'yseries', 'qs-smartphone-pro', IF QB-PHONE WRITE NOTHING LEAVE BLANK
Config.WebhookURL = 'YOUR_DISCORD_WEBHOOK_URL' -- Add your Discord webhook URL here
Config.LogoURL = 'https://r2.fivemanage.com/B0VvDDhP6bUpBcs9tUfHk/main_store-modified.png' -- URL to a logo image for Discord embeds
Config.ImagesPath = "nui://hsRentalSystem/_images/" -- Assuming your resource is named hsRentalSystem
Config.RentalLocations = {
{
-- Alta street
coords = vec4(-248.66, -1002.53, 28.09, 258.80), -- vec4 includes heading
pedModel = 's_f_m_shop_high',
zone = {
center = vector3(-248.66, -1002.53, 28.09), -- Creates Zone For Vehicle Spawn Around The Rental Ped.
radius = 20.0
},
blip = {
sprite = 198,
color = 50,
scale = 0.6,
text = "Car Rental"
},
blipCreated = false, -- Track if the blip has been created {Do Not Change This}
spawnPoints = {
vec4(-244.23, -1008.33, 28.92, 342.28),
vec4(-246.93, -1015.77, 28.71, 340.86)
}
},
{
-- Legion Parking
coords = vec4(234.14, -754.05, 33.64, 342.14), -- vec4 includes heading
pedModel = 's_f_m_shop_high',
zone = {
center = vector3(234.14, -754.05, 33.64),
radius = 20.0
},
blip = {
sprite = 198,
color = 50,
scale = 0.6,
text = "Car Rental"
},
blipCreated = false, -- Track if the blip has been created {Do Not Change This}
spawnPoints = {
vec4(237.20, -740.50, 34.60, 163.86),
vec4(240.32, -741.89, 34.61, 155.51),
vec4(233.74, -739.38, 34.58, 166.05)
}
},
{
-- Airport
coords = vec4(-1030.94, -2735.08, 19.24, 36.14), -- vec4 includes heading
pedModel = 's_f_m_shop_high',
zone = {
center = vector3(-1030.94, -2735.08, 19.24),
radius = 20.0
},
blip = {
sprite = 198,
color = 50,
scale = 0.6,
text = "Car Rental"
},
blipCreated = false, -- Track if the blip has been created {Do Not Change This}
spawnPoints = {
vec4(-1029.31, -2732.60, 20.08, 58.21),
vec4(-1024.34, -2735.21, 20.09, 57.79),
vec4(-1022.87, -2726.29, 20.08, 63.94)
}
},
{
-- Prison
coords = vec4(1851.96, 2615.50, 44.67, 266.75), -- vec4 includes heading
pedModel = 's_f_m_shop_high',
zone = {
center = vector3(1851.96, 2615.50, 44.67),
radius = 20.0
},
blip = {
sprite = 198,
color = 50,
scale = 0.6,
text = "Car Rental"
},
blipCreated = false, -- Track if the blip has been created {Do Not Change This}
spawnPoints = {
vec4(1854.37, 2620.72, 45.67, 268.18),
vec4(1854.62, 2624.17, 45.67, 275.53),
vec4(1854.57, 2627.90, 45.67, 277.21)
}
},
{
-- Paleto Bay
coords = vec4(82.39, 6422.01, 30.68, 40.28), -- vec4 includes heading
pedModel = 's_f_m_shop_high',
zone = {
center = vector3(82.39, 6422.01, 30.68),
radius = 20.0
},
blip = {
sprite = 198,
color = 50,
scale = 0.6,
text = "Car Rental"
},
blipCreated = false, -- Track if the blip has been created {Do Not Change This}
spawnPoints = {
vec4(85.26, 6424.89, 31.34, 47.06),
vec4(90.11, 6419.31, 31.34, 45.70),
vec4(78.92, 6419.35, 31.30, 44.05)
}
},
-- Add more rental locations as needed
}
Config.RentalVehicles = {
{
model = "adder",
name = "Adder Supercar",
price = 500,
image = Config.ImagesPath .. "adder.png",
},
{
model = "sultan",
name = "Sultan Sports",
price = 200,
image = Config.ImagesPath .. "sultan.png",
},
{
model = "panto",
name = "Panto Compact",
price = 50,
image = Config.ImagesPath .. "panto.png",
},
{
model = "esskey",
name = "Bike",
price = 50,
image = Config.ImagesPath .. "esskey.png",
},
{
model = "neon",
name = "Neon Fister",
price = 1000,
image = Config.ImagesPath .. "neon.png",
},
}
Configuration Options
Debug: Enable or disable debug mode for visualizing zones.
FuelSystem: Choose between
legacyfuel
orcdn-fuel
for vehicle fuel management.PhoneSystem:
Config.PhoneType
to specify the phone system in use (qs-phone
,gks-phone
,yseries
,qs-smartphone-pro
).Interaction: Select the interaction method (
textui
,qb-target
, orox-target
).NotificationType: Choose the notification system (
ox_lib
orqb_notify
).RentalLocations: Define rental locations with coordinates, ped models, zones, blips, and spawn points.
RentalVehicles: List available rental vehicles with models, names, prices, and images.
Usage
Renting a Vehicle
Approach the rental location marked on the map.
Interact with the rental NPC to open the rental menu.
Select a vehicle and confirm the rental.
The vehicle will spawn at the designated spawn point.
Now You Can Pay By Cash Or Bank.
Returning a Vehicle
Approach the rental location.
Open the rental menu and select "Return Vehicle".
The vehicle will be removed, and your rental data will be cleared.
Gets 50% Return After Vehicle Is Returned.
Locating a Vehicle
Open the rental menu.
Select "Locate Vehicle" to mark the vehicle on the map.
Last updated