Links

Rent Car

Preview
Buy this script on our store
Script preview on Youtube
Installation Steps
1) Download the resource from keymaster
2) Extract the file and install it on your server resources folder (don't modify the script folder name)
3) Add to your server.cfg:
  • ensure ps-rentcar
Configuration file
1
Config, Noti, Lang = {}, {}, {}
2
3
--[[
4
___ __ _ _ _
5
/ __\___ _ __ / _(_) __ _ _ _ _ __ __ _| |_(_) ___ _ __
6
/ / / _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \
7
/ /__| (_) | | | | _| | (_| | |_| | | | (_| | |_| | (_) | | | |
8
\____/\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_|
9
|___/
10
--]]
11
12
-- esx or qb (With lowcaps)
13
Config.Framework = "esx"
14
-- ESX export default: es_extended | For qb don't fill
15
Config.EsxExport = "es_extended"
16
-- For esx: esx:getSharedObject | qb: qb-core
17
Config.Core = "esx:getSharedObject"
18
-- If false will use a marker
19
Config.UsePed = true
20
-- Ped model
21
Config.PedModel = "ig_bankman"
22
-- Ped/ Marker coords
23
Config.PedCoords = {vector4(-257.4065, -987.7208, 30.2175, 345.8267)}
24
-- Free cam coords
25
Config.CamCoords = vector3(-305.39, -987.1, 43.0)
26
-- Coords where the vehicle will be returned
27
Config.ReturnVeh = vector3(-320.71, -953.47, 29.08)
28
-- Car Prices
29
Config.RentalCosts = {
30
[1] = 1000, -- 1º car
31
[2] = 1500, -- 2º car
32
[3] = 800, -- 3º car
33
[4] = 2000, -- 4º car
34
[5] = 100, -- 5º car
35
[6] = 1000 -- 6º car
36
}
37
-- Cars models and locationº
38
Config.CarList = {
39
{ model = 'divo', coords = vector4(-297.82, -990.7, 31.08, 343.91) },
40
{ model = 's1000rr', coords = vector4(-301.13, -989.48, 31.08, 338.55) },
41
{ model = 'sianr', coords = vector4(-304.77, -988.01, 32.4, 342.18) },
42
{ model = 'casup', coords = vector4(-308.34, -986.94, 31.08, 342.18) },
43
{ model = 'f4090', coords = vector4(-311.69, -985.72, 31.08, 342.18) },
44
{ model = 'avj', coords = vector4(-315.19, -984.38, 31.08, 342.18) }
45
}
46
-- Time the car will be rented
47
Config.RentTime = 1800000 -- 30 Minutes on miliseconds
48
-- Account the money will be charged
49
Config.AccountMoney = "bank"
50
51
--[[
52
__
53
/ / __ _ _ __ __ _ _ _ __ _ __ _ ___
54
/ / / _` | '_ \ / _` | | | |/ _` |/ _` |/ _ \
55
/ /__| (_| | | | | (_| | |_| | (_| | (_| | __/
56
\____/\__,_|_| |_|\__, |\__,_|\__,_|\__, |\___|
57
|___/ |___/
58
--]]
59
60
Lang.Blip = "Rent Car"
61
Lang.RentCar = "~w~Press ~r~E~w~ to rent a car"
62
Lang.DelCar = "~w~Press ~r~E~w~ to deposit the car"
63
Lang.ReturnedCar = "You have returned the rent vehicle"
64
Lang.Rented = "You have been charged ~g~"
65
Lang.ReturnBlip = "Return Rent Vehicle"
66
67
68
69
70
--[[
71
__ _ _ __ _ _ _
72
/\ \ \___ | |_(_)/ _(_) ___ __ _| |_(_) ___ _ __ ___
73
/ \/ / _ \| __| | |_| |/ __/ _` | __| |/ _ \| '_ \/ __|
74
/ /\ / (_) | |_| | _| | (_| (_| | |_| | (_) | | | \__ \
75
\_\ \/ \___/ \__|_|_| |_|\___\__,_|\__|_|\___/|_| |_|___/
76
--]]
77
78
-- Add your custom trigger of notifications
79
function notifications(notitype, message, time)
80
TriggerEvent('codem-notification', message, time, notitype)
81
end
82
83
84
Noti.info = 'info'
85
Noti.check = 'check'
86
Noti.error = 'error'
87
Noti.time = 5000
88
89
90
91
--[[
92
93
/\ /\___ _ _ ___
94
/ //_/ _ \ | | / __|
95
/ __ \ __/ |_| \__ \
96
\/ \/\___|\__, |___/
97
|___/
98
--]]
99
100
function keys(vehicle)
101
--Add your key system trigger to add the key
102
end
Resmon
Idle
On use
Contact Us
Discord
Last modified 2d ago