Config
Config = {}
local AllowedAreas = {
[1333033863] = true, --grass
[-1885547121] = true, -- desert and rock
[-1907520769] = true, -- desert
[-1595148316] = true, -- desert & beach san
[-1286696947] = true, -- sand mixed grass
[-840216541] = true, -- desert
[1288448767] = true, -- wet beach sand
[-1942898710] = true, -- desert mixed grass
[951832588] = true, -- 2d grass
[-461750719] = true, -- grass mountain
[2409420175] = true, -- grass
[3833216577] = true, -- grass
[1333033863] = true, -- grass
[4170197704] = true, -- grass
[1109728704] = true, -- grass
[2352068586] = true, -- grass
[581794674] = true, -- grass
[3008270349] = true, -- sand
[223086562] = true, -- sand
[3594309083] = true, -- sand
[2461440131] = true, -- sand
[1144315879] = true, -- sand
[2128369009] = true, -- sand
}
Config.Fine = {
enable = true, -- whether player should get fined for calling taxi but not using it
amount = 500 -- amount to get fined for
}
Config.kmRate = 5 -- how many € per km
Config.StartAmount = 50 -- set the starting amount of ride (if you want to disable set to false)
Config.EnableZonePrint = false -- set to true = will print on F8 console the zone you are currently on so you can use it to determine speed for certain zones
Config.DriverAbility = 0.0 -- 0.0 - 1.0
Config.DriverAggressiveness = 1.0 -- 0.0 - 1.0
Config.Plate = 'TAXI'
Config.BlipName = 'TAXI'
Config.DriveMode = 287 -- by default it will not stop on red lights and will bypass stopped cars. you can make your own driving mode here https://vespura.com/fivem/drivingstyle/
Config.Zones = {
[75.0] = { --70kmh zone
},
[85.0] = { --80kmh zone
'East Joshua Road',
'Miriam Turner Overpass',
},
[120.0] = { --120kmh zone
'Los Santos Freeway',
'Great Ocean Hwy',
'Senora Fwy'
}
}
Config.ox_lib = true -- uses lib.showTextUI instead of helpnotification
-- remember to uncomment ox_lib line in fxmanifest.lua
Config.Target = {
enabled = true,
label = 'Call taxi',
icon = 'fas fa-taxi',
target = 'ox_target', -- ox_target / qb-target
distance = 1.0,
models = {
'prop_phonebox_01b',
},
}
Config.Command = 'taxi' -- will register command use = Config.Command = 'taxi' for example
RegisterNetEvent("sm_taxi:notify", function(text)
--ShowNotification(text)
lib.notify({
title = 'Taxi',
description = text,
type = 'info'
})
end)
Config.Locale = {
['taxionway'] = 'Taxi is on way',
['timeleft'] = 'You have %d seconds time to get back on taxi',
['ridecancelled'] = 'Your ride was cancelled',
['setwaypoint'] = 'Set waypoint on map',
['notduringride'] = 'What are you trying...', --if player tries to call new taxi while in taxi
['payment'] = 'You paid %d€ for ride', --if player tries to call new taxi while in taxi
['leavetaxi'] = 'Press ~INPUT_ENTER~ to leave taxi',
['stopride'] = '"Press ~INPUT_CONTEXT~ to stop ride"',
['ox_lib_leavetaxi'] = 'Press [F] to leave taxi',
['ox_lib_stopride'] = 'Press [E] to stop ride',
}Last updated