MSK AI Taxi
Simple AI Taxi for ESX and QBCore
Description
- You can call a taxi with a command
- You can abort the taxi with a command and hotkey
- You can set multiple Spawnpoints for the taxi
- You can change the Drivingstyle and Speedzones
- You can set different pedmodels with name and voice
- You can set the price
- The Taxi will change the speed on specified speedzones
Config
Open Config
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, typ)
if IsDuplicityVersion() then -- serverside
exports.msk_core:Notification(source, 'AI Taxi', message, typ)
else -- clientside
exports.msk_core:Notification('AI Taxi', message, typ)
end
end
----------------------------------------------------------------
-- If set to 'Standalone' then you have to add your own functions in server.lua
Config.Framework = 'ESX' -- Set to 'ESX', 'QBCore' or 'Standalone'
----------------------------------------------------------------
-- For ESX you'll need esx_addonaccount for that!
-- For QBCore you'll need qb-banking for that!
Config.Society = {
enable = false, -- Set false if you don't want that the Price will be added to a society account
account = 'society_taxi'
}
----------------------------------------------------------------
-- If you deactivate the command, you can still use the export: exports.msk_aitaxi:callTaxi()
Config.Command = {
enable = true,
command = 'callTaxi'
}
Config.AbortTaxiDrive = {
enable = true,
command = 'abortTaxi',
hotkey = 'X'
}
Config.SpawnRadius = 200.0 -- default: 200.0 meters // Do not set more than 200.0!
Config.DrivingStyle = 786731 -- default: 786731 // https://vespura.com/fivem/drivingstyle/
Config.SpeedType = 3.6 -- kmh = 3.6 // mph = 2.236936
Config.SpeedZones = {
-- Speed of the Taxi in specific zones
[2] = 100, -- City / main roads
[10] = 60, -- Slow roads
[64] = 60, -- Off road
[66] = 150, -- Freeway
[82] = 150, -- Freeway tunnels
}
Config.Price = {
base = 20, -- Price for driving to your position
tick = 0.15, -- Price per tick
tickTime = 50,
color = {r = 255, g = 255, b = 255, a = 255},
position = {height = 0.90, width = 0.50}
}
Config.Jobs = {
enable = true, -- Set false to deactivate this feature
amount = 0, -- Maximum players online in this jobs to call a taxi
jobs = {
'taxi',
'taxi2',
}
}
----------------------------------------------------------------
-- It will use a random vehicle and random pedmodel from the list below
Config.Taxi = {
vehicles = {
-- You can set different models
'taxi',
'taxi',
},
pedmodels = {
-- You can set different models
{name = 'Michael Reynold', model = 'a_m_y_stlat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
{name = 'John Smith', model = 'a_m_y_smartcaspat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
},
}
Resmon
- Idle: 0.00ms
- In use: ~0.07ms
Requirements
- ESX Legacy or QBCore
Optional Requirements
- esx_addonaccount - (This is optional)
- qb-banking - (This is optional)
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | ~490 |
Requirements | See Requirements above |
Support | Yes |
My other Scripts
Paid
- [ESX] MSK Armor - Multiple Armor Vests
- [ESX] MSK Banking - Advanced Banking with NativeUI
- [ESX] MSK Garage - Garage & Impounds
- [ESX] MSK Handcuffs - Realistic Handcuffs
- [ESX/QBCore] MSK Radio - Channels with password
- [ESX/QBCore] MSK Simcard - Change your phonenumber
- [ESX] MSK Storage
- [ESX] MSK WeaponAmmo - Clips, Components & Tints