From bc755863895beafd4f6a1f241990e0980d2542ce Mon Sep 17 00:00:00 2001 From: Mycroft Date: Fri, 23 Sep 2022 01:07:42 +0100 Subject: [PATCH] tweak(esx_boat): uniform prints --- [esx_addons]/esx_boat/server/main.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/[esx_addons]/esx_boat/server/main.lua b/[esx_addons]/esx_boat/server/main.lua index 1059469f..93fa884b 100644 --- a/[esx_addons]/esx_boat/server/main.lua +++ b/[esx_addons]/esx_boat/server/main.lua @@ -7,7 +7,7 @@ function ParkBoats() ['@type'] = 'boat' }, function (rowsChanged) if rowsChanged > 0 then - print(('esx_boat: %s boat(s) have been stored!'):format(rowsChanged)) + print(('[^2INFO^7] Stored ^5%s^7 %s !'):format(rowsChanged, rowsChanged > 1 and 'boats' or 'boat')) end end) end @@ -18,7 +18,7 @@ ESX.RegisterServerCallback('esx_boat:buyBoat', function(source, cb, vehicleProps -- vehicle model not found if price == 0 then - print(('esx_boat: %s attempted to exploit the shop! (invalid vehicle model)'):format(xPlayer.identifier)) + print(('[^2INFO^7] Player ^5%s^7 Attempted To Exploit Shop'):format(xPlayer.source)) cb(false) else if xPlayer.getMoney() >= price then @@ -49,7 +49,7 @@ AddEventHandler('esx_boat:takeOutVehicle', function(plate) ['@plate'] = plate }, function(rowsChanged) if rowsChanged == 0 then - print(('esx_boat: %s exploited the garage!'):format(xPlayer.identifier)) + print(('[^2INFO^7] Player ^5%s^7 Attempted To Exploit Garage'):format(xPlayer.source)) end end) end) @@ -62,10 +62,6 @@ ESX.RegisterServerCallback('esx_boat:storeVehicle', function (source, cb, plate) ['@owner'] = xPlayer.identifier, ['@plate'] = plate }, function(rowsChanged) - if rowsChanged == 0 then - print(('esx_boat: %s attempted to store an boat they don\'t own!'):format(xPlayer.identifier)) - end - cb(rowsChanged) end) end)