Skip to content

Commit

Permalink
chore: [bpt_addons]\bpt_taxijob 🎨 Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 16, 2024
1 parent fdac063 commit 52ebde6
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 156 deletions.
10 changes: 5 additions & 5 deletions server-data/resources/[bpt_addons]/bpt_taxijob/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,12 @@ the "copyright" line and a pointer to where the full notice is found.
Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
notice like this when it starts in an interactive mode:

<program> Copyright (C) 2024 bitpredator
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
bpt_taxijob Copyright (C) 2024 bitpredator
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
Expand Down
38 changes: 19 additions & 19 deletions server-data/resources/[bpt_addons]/bpt_taxijob/config.lua
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
Config = {}
Config = {}

Config.DrawDistance = 10.0 -- How close do you need to be for the markers to be drawn (in GTA units).
Config.DrawDistance = 10.0 -- How close do you need to be for the markers to be drawn (in GTA units).

Config.NPCJobEarnings = { min = 300, max = 600 }
Config.MinimumDistance = 3000 -- Minimum NPC job destination distance from the pickup in GTA units, a higher number prevents nearby destionations.
Config.NPCJobEarnings = { min = 300, max = 600 }
Config.MinimumDistance = 3000 -- Minimum NPC job destination distance from the pickup in GTA units, a higher number prevents nearby destionations.

Config.MaxInService = -1 -- How much people can be in service at once?
Config.EnablePlayerManagement = true -- Enable society managing.
Config.MaxInService = -1 -- How much people can be in service at once?
Config.EnablePlayerManagement = true -- Enable society managing.
Config.EnableSocietyOwnedVehicles = false

Config.Locale = GetConvar('esx:locale', 'en')
Config.Locale = GetConvar("esx:locale", "en")

Config.OxInventory = ESX.GetConfig().OxInventory
Config.OxInventory = ESX.GetConfig().OxInventory

Config.AuthorizedVehicles = {
{ model = 'taxi', title = 'Taxi', icon = 'fas fa-car' }
Config.AuthorizedVehicles = {
{ model = "taxi", title = "Taxi", icon = "fas fa-car" },
}

Config.Zones = {
Config.Zones = {

VehicleSpawner = {
Pos = { x = 915.039, y = -162.187, z = 74.5 },
Size = { x = 1.0, y = 1.0, z = 1.0 },
Color = { r = 204, g = 204, b = 0 },
Type = 36,
Rotate = true
Rotate = true,
},

VehicleSpawnPoint = {
Pos = { x = 911.108, y = -177.867, z = 74.283 },
Size = { x = 1.5, y = 1.5, z = 1.0 },
Type = -1,
Rotate = false,
Heading = 225.0
Heading = 225.0,
},

VehicleDeleter = {
Pos = { x = 908.317, y = -183.070, z = 73.201 },
Size = { x = 3.0, y = 3.0, z = 0.25 },
Color = { r = 255, g = 0, b = 0 },
Type = 1,
Rotate = false
Rotate = false,
},

TaxiActions = {
Pos = { x = 903.32, y = -170.55, z = 74.0 },
Size = { x = 1.0, y = 1.0, z = 1.0 },
Color = { r = 204, g = 204, b = 0 },
Type = 20,
Rotate = true
Rotate = true,
},

Cloakroom = {
Pos = { x = 894.88, y = -180.23, z = 74.5 },
Size = { x = 1.0, y = 1.0, z = 1.0 },
Color = { r = 204, g = 204, b = 0 },
Type = 21,
Rotate = true
}
Rotate = true,
},
}

Config.JobLocations = {
Config.JobLocations = {
vector3(293.5, -590.2, 42.7),
vector3(253.4, -375.9, 44.1),
vector3(120.8, -300.4, 45.1),
Expand Down Expand Up @@ -152,5 +152,5 @@ Config.JobLocations = {
vector3(-1297.5, -654.9, 26.1),
vector3(-1645.5, 144.6, 61.7),
vector3(-1160.6, 744.4, 154.6),
vector3(-798.1, 831.7, 204.4)
vector3(-798.1, 831.7, 204.4),
}
40 changes: 20 additions & 20 deletions server-data/resources/[bpt_addons]/bpt_taxijob/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
fx_version 'adamant'
fx_version("adamant")

game 'gta5'
game("gta5")

author "bitpredator"
description 'Allows players to be a taxi driver (Pickup and drop-off NPCs)'
lua54 'yes'
version '1.0.1'
author("bitpredator")
description("Allows players to be a taxi driver (Pickup and drop-off NPCs)")
lua54("yes")
version("1.0.1")

shared_script '@es_extended/imports.lua'
shared_script("@es_extended/imports.lua")

client_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'client/*.lua'
}
client_scripts({
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"client/*.lua",
})

server_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'server/*.lua'
}
server_scripts({
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"server/*.lua",
})

dependency 'es_extended'
dependency("es_extended")
108 changes: 54 additions & 54 deletions server-data/resources/[bpt_addons]/bpt_taxijob/locales/en.lua
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
Locales['en'] = {
Locales["en"] = {
-- cloakroom
['cloakroom_menu'] = 'cloakroom',
['cloakroom_prompt'] = 'press [E] to access the Cloakroom.',
['wear_citizen'] = 'citizen wear',
['wear_work'] = 'taxi wear',
["cloakroom_menu"] = "cloakroom",
["cloakroom_prompt"] = "press [E] to access the Cloakroom.",
["wear_citizen"] = "citizen wear",
["wear_work"] = "taxi wear",

-- garage
['spawner_prompt'] = 'press [E] to access the Garage.',
["spawner_prompt"] = "press [E] to access the Garage.",
["vehicle_spawned"] = "Successfully Spawned A ~b~%s!",
['store_veh'] = 'press [E] to store the vehicle',
['spawn_veh'] = 'spawn vehicle',
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
['only_taxi'] = 'you can only store taxis.',
['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua",
['unknow_model'] = "Can't spawn this model because unknow",
['taking_service'] = 'taking service: Taxi/Uber',
['full_service'] = 'full service: ',
['amount_invalid'] = 'amount invalid',
['press_to_open'] = 'press [E] to access the menu',
['billing'] = 'billing',
['billing_sent'] = 'the bill has been registered!',
['invoice_amount'] = 'invoice amount',
['no_players_near'] = 'no players nearby',
['start_job'] = 'start / stop driving NPC jobs',
['drive_search_pass'] = 'driving in search of passengers',
['customer_found'] = 'you have found a customer, get closer to them',
['client_unconcious'] = 'your client is ~r~unconscious, look for another one',
['arrive_dest'] = 'you have arrived at your destination',
['take_me_to_near'] = 'Take me to %s, near %s',
['take_me_to'] = 'Take me to %s',
['close_to_client'] = 'you are too far from the client, get close to them',
['return_to_veh'] = 'please return to your vehicle to continue the mission',
['must_in_taxi'] = 'you must be in a taxi to start the mission',
['must_in_vehicle'] = 'you must be in a vehicle to begin the mission',
['not_in_taxi'] = 'You left the taxi while on mission!',
['have_earned'] = 'you have earned $%s',
['comp_earned'] = '- your company has earned $%s\n- you have earned $%s',
['deposit_stock'] = 'deposit Stock',
['take_stock'] = 'take Stock',
['boss_actions'] = 'boss Actions',
['mission_complete'] = 'mission Completed',
['quantity'] = 'quantity',
['quantity_invalid'] = 'that is an invalid quantity!',
['inventory'] = 'inventory',
['taxi_client'] = 'taxi Client',
['have_withdrawn'] = 'you have withdrawn x%s %s',
['have_deposited'] = 'you have deposited x%s %s',
['player_cannot_hold'] = 'you do ~r~not have enough free space in your inventory!',
['blip_taxi'] = 'downtown Cab Co.',
['phone_taxi'] = 'downtown Cab Co.',
['taxi'] = 'taxi',
['taxi_stock'] = 'taxi Stock',
['amount'] = "Amount",
['bill_amount'] = "Amount to bill..",
['deposit_amount'] = "Amount to deposit..",
['withdraw_amount'] = "Amount to withdraw..",
['confirm'] = "Confirm"
["store_veh"] = "press [E] to store the vehicle",
["spawn_veh"] = "spawn vehicle",
["spawnpoint_blocked"] = "there is a vehicle blocking the spawnpoint!",
["only_taxi"] = "you can only store taxis.",
["empty_authorized_vehicles_table"] = "Authorized vehicles table is empty in config.lua",
["unknow_model"] = "Can't spawn this model because unknow",
["taking_service"] = "taking service: Taxi/Uber",
["full_service"] = "full service: ",
["amount_invalid"] = "amount invalid",
["press_to_open"] = "press [E] to access the menu",
["billing"] = "billing",
["billing_sent"] = "the bill has been registered!",
["invoice_amount"] = "invoice amount",
["no_players_near"] = "no players nearby",
["start_job"] = "start / stop driving NPC jobs",
["drive_search_pass"] = "driving in search of passengers",
["customer_found"] = "you have found a customer, get closer to them",
["client_unconcious"] = "your client is ~r~unconscious, look for another one",
["arrive_dest"] = "you have arrived at your destination",
["take_me_to_near"] = "Take me to %s, near %s",
["take_me_to"] = "Take me to %s",
["close_to_client"] = "you are too far from the client, get close to them",
["return_to_veh"] = "please return to your vehicle to continue the mission",
["must_in_taxi"] = "you must be in a taxi to start the mission",
["must_in_vehicle"] = "you must be in a vehicle to begin the mission",
["not_in_taxi"] = "You left the taxi while on mission!",
["have_earned"] = "you have earned $%s",
["comp_earned"] = "- your company has earned $%s\n- you have earned $%s",
["deposit_stock"] = "deposit Stock",
["take_stock"] = "take Stock",
["boss_actions"] = "boss Actions",
["mission_complete"] = "mission Completed",
["quantity"] = "quantity",
["quantity_invalid"] = "that is an invalid quantity!",
["inventory"] = "inventory",
["taxi_client"] = "taxi Client",
["have_withdrawn"] = "you have withdrawn x%s %s",
["have_deposited"] = "you have deposited x%s %s",
["player_cannot_hold"] = "you do ~r~not have enough free space in your inventory!",
["blip_taxi"] = "downtown Cab Co.",
["phone_taxi"] = "downtown Cab Co.",
["taxi"] = "taxi",
["taxi_stock"] = "taxi Stock",
["amount"] = "Amount",
["bill_amount"] = "Amount to bill..",
["deposit_amount"] = "Amount to deposit..",
["withdraw_amount"] = "Amount to withdraw..",
["confirm"] = "Confirm",
}
116 changes: 58 additions & 58 deletions server-data/resources/[bpt_addons]/bpt_taxijob/locales/it.lua
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
Locales['it'] = {
Locales["it"] = {
-- cloakroom
['cloakroom_menu'] = 'guardaroba',
['cloakroom_prompt'] = 'premi [E] per accedere al guardaroba.',
['wear_citizen'] = 'abbigliamento cittadino',
['wear_work'] = 'abiti da lavoro',
["cloakroom_menu"] = "guardaroba",
["cloakroom_prompt"] = "premi [E] per accedere al guardaroba.",
["wear_citizen"] = "abbigliamento cittadino",
["wear_work"] = "abiti da lavoro",

-- garage
['spawner_prompt'] = 'premi [E] per accedere al garage.',
["spawner_prompt"] = "premi [E] per accedere al garage.",
["vehicle_spawned"] = "generato con successo un ~b~%s!",
['store_veh'] = 'premi [E] per depositare il veicolo',
['spawn_veh'] = 'genera veicolo',
['spawnpoint_blocked'] = 'un veicolo blocca lo spawnpoint!',
['only_taxi'] = 'puoi depositare solo taxi.',
['empty_garage'] = 'nessun veicolo nel garage!',
['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua",
['unknow_model'] = "Can't spawn this model because unknow",
['taking_service'] = 'prendi servizio: Taxi/Uber',
['full_service'] = 'servizio completo: ',
['amount_invalid'] = 'importo non valido',
['press_to_open'] = 'premi [E] per accedere al menu',
['billing'] = 'fattura',
['billing_sent'] = 'la fattura è stata registrata!',
['invoice_amount'] = 'importo fattura',
['no_players_near'] = 'nessun giocatore nelle vicinanze',
['start_job'] = 'inizia / interrompi la guida di lavori NPC',
['drive_search_pass'] = 'guida alla ricerca di passeggeri',
['customer_found'] = 'hai trovato un cliente avvicinati a lui',
['client_unconcious'] = 'il tuo cliente è ~r~incosciente, cercane un altro',
['arrive_dest'] = 'sei arrivato a destinazione',
['take_me_to_near'] = 'portami a %s, vicino a %s',
['take_me_to'] = 'portami a %s',
['close_to_client'] = 'sei troppo lontano dal cliente, avvicinati a lui',
['return_to_veh'] = 'torna al tuo veicolo per continuare la missione',
['must_in_taxi'] = 'devi essere in un taxi per iniziare la missione',
['must_in_vehicle'] = 'devi essere in un veicolo per iniziare la missione',
['not_in_taxi'] = 'Hai lasciato il taxi mentre eri in missione!',
['have_earned'] = 'hai guadagnato $%s',
['comp_earned'] = '- la tua azienda ha guadagnato $%s \n - hai guadagnato $%s',
['deposit_stock'] = 'deposito',
['take_stock'] = 'prendi',
['empty_stock'] = 'deposito vuoto!',
['empty_your_inventory'] = 'Svuota il tuo inventario!',
['boss_actions'] = 'Azioni del capo',
['mission_complete'] = 'missione completata',
['quantity'] = 'quantità',
['quantity_invalid'] = 'questa quantità non è valida!',
['inventory'] = 'inventario',
['taxi_client'] = 'cliente taxi',
['have_withdrawn'] = 'hai prelevato x%s %s',
['have_deposited'] = 'hai depositato x%s %s',
['player_cannot_hold'] = '~r~non hai abbastanza spazio libero nel tuo inventario!',
['blip_taxi'] = 'Downtown Cab Co.',
['phone_taxi'] = ' downtown Cab Co.',
['taxi'] = 'taxi',
['taxi_stock'] = 'deposito dei taxi',
['menu_return'] = 'Indietro',
['amount'] = "Quantità",
['bill_amount'] = "Quantità da fatturare..",
['deposit_amount'] = "Quantità da depositare..",
['withdraw_amount'] = "Quantità da prelevare..",
['confirm'] = "Conferma",
["store_veh"] = "premi [E] per depositare il veicolo",
["spawn_veh"] = "genera veicolo",
["spawnpoint_blocked"] = "un veicolo blocca lo spawnpoint!",
["only_taxi"] = "puoi depositare solo taxi.",
["empty_garage"] = "nessun veicolo nel garage!",
["empty_authorized_vehicles_table"] = "Authorized vehicles table is empty in config.lua",
["unknow_model"] = "Can't spawn this model because unknow",
["taking_service"] = "prendi servizio: Taxi/Uber",
["full_service"] = "servizio completo: ",
["amount_invalid"] = "importo non valido",
["press_to_open"] = "premi [E] per accedere al menu",
["billing"] = "fattura",
["billing_sent"] = "la fattura è stata registrata!",
["invoice_amount"] = "importo fattura",
["no_players_near"] = "nessun giocatore nelle vicinanze",
["start_job"] = "inizia / interrompi la guida di lavori NPC",
["drive_search_pass"] = "guida alla ricerca di passeggeri",
["customer_found"] = "hai trovato un cliente avvicinati a lui",
["client_unconcious"] = "il tuo cliente è ~r~incosciente, cercane un altro",
["arrive_dest"] = "sei arrivato a destinazione",
["take_me_to_near"] = "portami a %s, vicino a %s",
["take_me_to"] = "portami a %s",
["close_to_client"] = "sei troppo lontano dal cliente, avvicinati a lui",
["return_to_veh"] = "torna al tuo veicolo per continuare la missione",
["must_in_taxi"] = "devi essere in un taxi per iniziare la missione",
["must_in_vehicle"] = "devi essere in un veicolo per iniziare la missione",
["not_in_taxi"] = "Hai lasciato il taxi mentre eri in missione!",
["have_earned"] = "hai guadagnato $%s",
["comp_earned"] = "- la tua azienda ha guadagnato $%s \n - hai guadagnato $%s",
["deposit_stock"] = "deposito",
["take_stock"] = "prendi",
["empty_stock"] = "deposito vuoto!",
["empty_your_inventory"] = "Svuota il tuo inventario!",
["boss_actions"] = "Azioni del capo",
["mission_complete"] = "missione completata",
["quantity"] = "quantità",
["quantity_invalid"] = "questa quantità non è valida!",
["inventory"] = "inventario",
["taxi_client"] = "cliente taxi",
["have_withdrawn"] = "hai prelevato x%s %s",
["have_deposited"] = "hai depositato x%s %s",
["player_cannot_hold"] = "~r~non hai abbastanza spazio libero nel tuo inventario!",
["blip_taxi"] = "Downtown Cab Co.",
["phone_taxi"] = " downtown Cab Co.",
["taxi"] = "taxi",
["taxi_stock"] = "deposito dei taxi",
["menu_return"] = "Indietro",
["amount"] = "Quantità",
["bill_amount"] = "Quantità da fatturare..",
["deposit_amount"] = "Quantità da depositare..",
["withdraw_amount"] = "Quantità da prelevare..",
["confirm"] = "Conferma",
}
Loading

0 comments on commit 52ebde6

Please sign in to comment.