-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.lua
More file actions
134 lines (122 loc) · 4.29 KB
/
config.lua
File metadata and controls
134 lines (122 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Config = {}
Config.Framework = 'auto' -- 'auto' | 'qb' | 'qbx' | 'esx'
Config.TargetSystem = 'auto' -- 'auto' | 'ox_target' | 'qb-target' | 'interact' | 'none'
Config.NotifySystem = 'auto' -- 'auto' | 'ox_lib' | 'framework'
Config.Locations = {
{
id = 'rental_main',
name = 'Car Rental',
coords = vector3(-50.0, -1090.0, 26.5),
heading = 160.0,
spawnPoint = vector4(-45.0, -1085.0, 26.5, 70.0),
returnRadius = 15.0,
blip = {
enabled = true,
sprite = 225,
color = 17,
scale = 0.8,
label = 'Car Rental'
},
ped = {
enabled = true,
model = 's_m_y_valet_01',
scenario = 'WORLD_HUMAN_CLIPBOARD',
},
},
}
Config.Vehicles = {
{
model = 'baller8',
label = 'Baller 8',
manufacturer = 'Gallivanter',
category = 'SUV',
price = 500,
image = 'https://docs.fivem.net/vehicles/baller8.webp',
stats = { speed = 85, acceleration = 70, braking = 75, handling = 80 },
},
{
model = 'cavalcade3',
label = 'Cavalcade 3',
manufacturer = 'Albany',
category = 'SUV',
price = 450,
image = 'https://docs.fivem.net/vehicles/cavalcade3.webp',
stats = { speed = 75, acceleration = 65, braking = 70, handling = 75 },
},
{
model = 'stafford',
label = 'Stafford',
manufacturer = 'Enus',
category = 'Classic',
price = 600,
image = 'https://docs.fivem.net/vehicles/stafford.webp',
stats = { speed = 70, acceleration = 60, braking = 85, handling = 90 },
},
{
model = 'comet6',
label = 'Comet S2',
manufacturer = 'Pfister',
category = 'Sports',
price = 800,
image = 'https://docs.fivem.net/vehicles/comet6.webp',
stats = { speed = 90, acceleration = 85, braking = 80, handling = 85 },
},
{
model = 'jester4',
label = 'Jester RR',
manufacturer = 'Dinka',
category = 'Sports',
price = 750,
image = 'https://docs.fivem.net/vehicles/jester4.webp',
stats = { speed = 88, acceleration = 90, braking = 78, handling = 82 },
},
{
model = 'buffalo4',
label = 'Buffalo STX',
manufacturer = 'Bravado',
category = 'Muscle',
price = 550,
image = 'https://docs.fivem.net/vehicles/buffalo4.webp',
stats = { speed = 82, acceleration = 75, braking = 72, handling = 70 },
},
}
Config.RentalDurations = {
{ days = 1, label = '5 Minutes', multiplier = 0.5, minutes = 5 },
{ days = 1, label = '1 Hour', multiplier = 0.5, minutes = 60 },
{ days = 1, label = '2 Hours', multiplier = 0.5, minutes = 120 },
{ days = 1, label = '3 Hours', multiplier = 0.5, minutes = 180 },
{ days = 1, label = '6 Hours', multiplier = 0.8, minutes = 360 },
{ days = 1, label = '12 Hours', multiplier = 1.0, minutes = 720 },
{ days = 1, label = '1 Day', multiplier = 1.5, minutes = 1440 },
{ days = 2, label = '2 Days', multiplier = 2.5, minutes = 2880 },
{ days = 3, label = '3 Days', multiplier = 3.5, minutes = 4320 },
{ days = 7, label = '7 Days', multiplier = 6.0, minutes = 10080 },
}
Config.PaymentMethods = {
{ id = 'bank', label = 'Bank Transfer', icon = 'fa-credit-card' },
{ id = 'cash', label = 'Cash', icon = 'fa-money-bill-wave' },
}
Config.AllowMultipleRentals = false
Config.ReturnAtAnyLocation = true
Config.RefundOnReturn = true
Config.RefundPercentage = 50
Config.DeleteVehicleOnExpiry = false
Config.WarnBeforeExpiry = 5
Config.LateFee = 100
Config.LateFeeInterval = 1
Config.AutoTerminateOffline = true
Config.InteractionDistance = 2.5
Config.UseBlips = true
Config.UsePeds = true
Config.UseMarkers = false
Config.InteractionKey = 38
Config.FuelLevel = 100
Config.LockVehicle = false
Config.GiveKeys = true
-- When true: if a player disconnects, their rental vehicle respawns at the last
-- known location when they reconnect and they receive the keys automatically.
-- When false: the vehicle is stored back with the NPC on disconnect. The player
-- must retrieve it again from the "My Rentals" menu on reconnect.
Config.RespawnOnReconnect = true
-- M6 Fix: Debug disabled by default for production
Config.Debug = false