diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/client/main.lua b/server-data/resources/[esx_addons]/esx_dmvschool/client/main.lua index 2f10eff99..155879c2e 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/client/main.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/client/main.lua @@ -1,29 +1,28 @@ -local CurrentAction = nil -local CurrentActionMsg = nil +local CurrentAction = nil +local CurrentActionMsg = nil local CurrentActionData = nil -local Licenses = {} -local CurrentTest = nil -local CurrentTestType = nil -local CurrentVehicle = nil +local Licenses = {} +local CurrentTest = nil +local CurrentTestType = nil +local CurrentVehicle = nil local CurrentCheckPoint, DriveErrors = 0, 0 -local LastCheckPoint = -1 -local CurrentBlip = nil -local CurrentZoneType = nil -local IsAboveSpeedLimit = false +local LastCheckPoint = -1 +local CurrentBlip = nil +local CurrentZoneType = nil local LastVehicleHealth = nil function DrawMissionText(msg, time) ClearPrints() - BeginTextCommandPrint('STRING') + BeginTextCommandPrint("STRING") AddTextComponentSubstringPlayerName(msg) EndTextCommandPrint(time, true) end function StartTheoryTest() - CurrentTest = 'theory' + CurrentTest = "theory" SendNUIMessage({ - openQuestion = true + openQuestion = true, }) ESX.SetTimeout(200, function() @@ -35,177 +34,199 @@ function StopTheoryTest(success) CurrentTest = nil SendNUIMessage({ - openQuestion = false + openQuestion = false, }) SetNuiFocus(false) if success then - TriggerServerEvent('esx_dmvschool:addLicense', 'dmv') - ESX.ShowNotification(_U('passed_test')) + TriggerServerEvent("esx_dmvschool:addLicense", "dmv") + ESX.ShowNotification(TranslateCap("passed_test")) else - ESX.ShowNotification(_U('failed_test')) + ESX.ShowNotification(TranslateCap("failed_test")) end end function StartDriveTest(type) - ESX.Game.SpawnVehicle(Config.VehicleModels[type], vector3(Config.Zones.VehicleSpawnPoint.Pos.x, Config.Zones.VehicleSpawnPoint.Pos.y, Config.Zones.VehicleSpawnPoint.Pos.z), Config.Zones.VehicleSpawnPoint.Pos.h, function(vehicle) - CurrentTest = 'drive' - CurrentTestType = type - CurrentCheckPoint = 0 - LastCheckPoint = -1 - CurrentZoneType = 'residence' - DriveErrors = 0 - IsAboveSpeedLimit = false - CurrentVehicle = vehicle - LastVehicleHealth = GetEntityHealth(vehicle) - - local playerPed = PlayerPedId() - TaskWarpPedIntoVehicle(playerPed, vehicle, -1) - SetVehicleFuelLevel(vehicle, 100.0) - DecorSetFloat(vehicle, "_FUEL_LEVEL", GetVehicleFuelLevel(vehicle)) - end) + ESX.Game.SpawnVehicle( + Config.VehicleModels[type], + vector3( + Config.Zones.VehicleSpawnPoint.Pos.x, + Config.Zones.VehicleSpawnPoint.Pos.y, + Config.Zones.VehicleSpawnPoint.Pos.z + ), + Config.Zones.VehicleSpawnPoint.Pos.h, + function(vehicle) + CurrentTest = "drive" + CurrentTestType = type + CurrentCheckPoint = 0 + LastCheckPoint = -1 + CurrentZoneType = "residence" + DriveErrors = 0 + IsAboveSpeedLimit = false + CurrentVehicle = vehicle + LastVehicleHealth = GetEntityHealth(vehicle) + + local playerPed = PlayerPedId() + TaskWarpPedIntoVehicle(playerPed, vehicle, -1) + SetVehicleFuelLevel(vehicle, 100.0) + DecorSetFloat(vehicle, "_FUEL_LEVEL", GetVehicleFuelLevel(vehicle)) + end + ) end function StopDriveTest(success) if success then - TriggerServerEvent('esx_dmvschool:addLicense', CurrentTestType) - ESX.ShowNotification(_U('passed_test')) + TriggerServerEvent("esx_dmvschool:addLicense", CurrentTestType) + ESX.ShowNotification(TranslateCap("passed_test")) else - ESX.ShowNotification(_U('failed_test')) + ESX.ShowNotification(TranslateCap("failed_test")) end - CurrentTest = nil + CurrentTest = nil CurrentTestType = nil end function SetCurrentZoneType(type) -CurrentZoneType = type + CurrentZoneType = type end function OpenDMVSchoolMenu() local ownedLicenses = {} - for i=1, #Licenses, 1 do + for i = 1, #Licenses, 1 do ownedLicenses[Licenses[i].type] = true end local elements = { - {unselectable = true, icon = "fas fa-car", title = _U("driving_school")} + { unselectable = true, icon = "fas fa-car", title = TranslateCap("driving_school") }, } - if not ownedLicenses['dmv'] then - elements[#elements+1] = { + if not ownedLicenses["dmv"] then + elements[#elements + 1] = { icon = "fas fa-car", - title = (('%s: <span style="color:green;">%s</span>'):format(_U('theory_test'), _U('school_item', ESX.Math.GroupDigits(Config.Prices['dmv'])))), - value = "theory_test" + title = (('%s: <span style="color:green;">%s</span>'):format( + TranslateCap("theory_test"), + TranslateCap("school_item", ESX.Math.GroupDigits(Config.Prices["dmv"])) + )), + value = "theory_test", } end - if ownedLicenses['dmv'] then - if not ownedLicenses['drive'] then - elements[#elements+1] = { + if ownedLicenses["dmv"] then + if not ownedLicenses["drive"] then + elements[#elements + 1] = { icon = "fas fa-car", - title = (('%s: <span style="color:green;">%s</span>'):format(_U('road_test_car'), _U('school_item', ESX.Math.GroupDigits(Config.Prices['drive'])))), + title = (('%s: <span style="color:green;">%s</span>'):format( + TranslateCap("road_test_car"), + TranslateCap("school_item", ESX.Math.GroupDigits(Config.Prices["drive"])) + )), value = "drive_test", - type = "drive" + type = "drive", } end - if not ownedLicenses['drive_bike'] then - elements[#elements+1] = { + if not ownedLicenses["drive_bike"] then + elements[#elements + 1] = { icon = "fas fa-car", - title = (('%s: <span style="color:green;">%s</span>'):format(_U('road_test_bike'), _U('school_item', ESX.Math.GroupDigits(Config.Prices['drive_bike'])))), + title = (('%s: <span style="color:green;">%s</span>'):format( + TranslateCap("road_test_bike"), + TranslateCap("school_item", ESX.Math.GroupDigits(Config.Prices["drive_bike"])) + )), value = "drive_test", - type = "drive_bike" + type = "drive_bike", } end - if not ownedLicenses['drive_truck'] then - elements[#elements+1] = { + if not ownedLicenses["drive_truck"] then + elements[#elements + 1] = { icon = "fas fa-car", - title = (('%s: <span style="color:green;">%s</span>'):format(_U('road_test_truck'), _U('school_item', ESX.Math.GroupDigits(Config.Prices['drive_truck'])))), + title = (('%s: <span style="color:green;">%s</span>'):format( + TranslateCap("road_test_truck"), + TranslateCap("school_item", ESX.Math.GroupDigits(Config.Prices["drive_truck"])) + )), value = "drive_test", - type = "drive_truck" + type = "drive_truck", } end end - ESX.OpenContext("right", elements, function(menu,element) + ESX.OpenContext("right", elements, function(menu, element) if element.value == "theory_test" then - ESX.TriggerServerCallback('esx_dmvschool:canYouPay', function(haveMoney) + ESX.TriggerServerCallback("esx_dmvschool:canYouPay", function(haveMoney) if haveMoney then ESX.CloseContext() StartTheoryTest() else - ESX.ShowNotification(_U('not_enough_money')) + ESX.ShowNotification(TranslateCap("not_enough_money")) end - end, 'dmv') + end, "dmv") elseif element.value == "drive_test" then - ESX.TriggerServerCallback('esx_dmvschool:canYouPay', function(haveMoney) + ESX.TriggerServerCallback("esx_dmvschool:canYouPay", function(haveMoney) if haveMoney then ESX.CloseContext() StartDriveTest(element.type) else - ESX.ShowNotification(_U('not_enough_money')) + ESX.ShowNotification(TranslateCap("not_enough_money")) end end, element.type) end end, function(menu) - CurrentAction = 'dmvschool_menu' - CurrentActionMsg = _U('press_open_menu') + CurrentAction = "dmvschool_menu" + CurrentActionMsg = TranslateCap("press_open_menu") CurrentActionData = {} end) end -RegisterNUICallback('question', function(data, cb) +RegisterNUICallback("question", function(data, cb) SendNUIMessage({ - openSection = 'question' + openSection = "question", }) cb() end) -RegisterNUICallback('close', function(data, cb) +RegisterNUICallback("close", function(data, cb) StopTheoryTest(true) cb() end) -RegisterNUICallback('kick', function(data, cb) +RegisterNUICallback("kick", function(data, cb) StopTheoryTest(false) cb() end) -AddEventHandler('esx_dmvschool:hasEnteredMarker', function(zone) - if zone == 'DMVSchool' then - CurrentAction = 'dmvschool_menu' - CurrentActionMsg = _U('press_open_menu') +AddEventHandler("esx_dmvschool:hasEnteredMarker", function(zone) + if zone == "DMVSchool" then + CurrentAction = "dmvschool_menu" + CurrentActionMsg = TranslateCap("press_open_menu") CurrentActionData = {} end end) -AddEventHandler('esx_dmvschool:hasExitedMarker', function(zone) +AddEventHandler("esx_dmvschool:hasExitedMarker", function(zone) CurrentAction = nil ESX.CloseContext() end) -RegisterNetEvent('esx_dmvschool:loadLicenses') -AddEventHandler('esx_dmvschool:loadLicenses', function(licenses) +RegisterNetEvent("esx_dmvschool:loadLicenses") +AddEventHandler("esx_dmvschool:loadLicenses", function(licenses) Licenses = licenses end) -- Create Blips CreateThread(function() - local blip = AddBlipForCoord(Config.Zones.DMVSchool.Pos.x, Config.Zones.DMVSchool.Pos.y, Config.Zones.DMVSchool.Pos.z) + local blip = + AddBlipForCoord(Config.Zones.DMVSchool.Pos.x, Config.Zones.DMVSchool.Pos.y, Config.Zones.DMVSchool.Pos.z) - SetBlipSprite (blip, 408) - SetBlipColour (blip, 0) + SetBlipSprite(blip, 408) + SetBlipColour(blip, 0) SetBlipDisplay(blip, 4) - SetBlipScale (blip, 1.2) + SetBlipScale(blip, 1.2) SetBlipAsShortRange(blip, true) BeginTextCommandSetBlipName("STRING") - AddTextComponentSubstringPlayerName(_U('driving_school_blip')) + AddTextComponentSubstringPlayerName(TranslateCap("driving_school_blip")) EndTextCommandSetBlipName(blip) end) @@ -216,16 +237,40 @@ CreateThread(function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) - for k,v in pairs(Config.Zones) do + for k, v in pairs(Config.Zones) do local Pos = vector3(v.Pos.x, v.Pos.y, v.Pos.z) - if(v.Type ~= -1 and #(coords - Pos) < Config.DrawDistance) then + if v.Type ~= -1 and #(coords - Pos) < Config.DrawDistance then sleep = 0 - DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false) + DrawMarker( + v.Type, + v.Pos.x, + v.Pos.y, + v.Pos.z, + 0.0, + 0.0, + 0.0, + 0, + 0.0, + 0.0, + v.Size.x, + v.Size.y, + v.Size.z, + v.Color.r, + v.Color.g, + v.Color.b, + 100, + false, + true, + 2, + false, + false, + false, + false + ) end end - if CurrentTest == 'theory' then - + if CurrentTest == "theory" then sleep = 0 DisableControlAction(0, 1, true) -- LookLeftRight DisableControlAction(0, 2, true) -- LookUpDown @@ -234,7 +279,7 @@ CreateThread(function() DisableControlAction(0, 106, true) -- VehicleMouseControlOverride end - if CurrentTest == 'drive' then + if CurrentTest == "drive" then sleep = 0 local nextCheckPoint = CurrentCheckPoint + 1 @@ -245,7 +290,7 @@ CreateThread(function() CurrentTest = nil - ESX.ShowNotification(_U('driving_test_complete')) + ESX.ShowNotification(TranslateCap("driving_test_complete")) if DriveErrors < Config.MaxErrors then StopDriveTest(true) @@ -258,17 +303,31 @@ CreateThread(function() RemoveBlip(CurrentBlip) end - CurrentBlip = AddBlipForCoord(Config.CheckPoints[nextCheckPoint].Pos.x, Config.CheckPoints[nextCheckPoint].Pos.y, Config.CheckPoints[nextCheckPoint].Pos.z) + CurrentBlip = AddBlipForCoord( + Config.CheckPoints[nextCheckPoint].Pos.x, + Config.CheckPoints[nextCheckPoint].Pos.y, + Config.CheckPoints[nextCheckPoint].Pos.z + ) SetBlipRoute(CurrentBlip, 1) LastCheckPoint = CurrentCheckPoint end - local Pos = vector3(Config.CheckPoints[nextCheckPoint].Pos.x,Config.CheckPoints[nextCheckPoint].Pos.y,Config.CheckPoints[nextCheckPoint].Pos.z) + local Pos = vector3( + Config.CheckPoints[nextCheckPoint].Pos.x, + Config.CheckPoints[nextCheckPoint].Pos.y, + Config.CheckPoints[nextCheckPoint].Pos.z + ) local distance = #(coords - Pos) if distance <= Config.DrawDistance then - DrawMarker(1, Config.CheckPoints[nextCheckPoint].Pos.x, Config.CheckPoints[nextCheckPoint].Pos.y, Config.CheckPoints[nextCheckPoint].Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 204, 102, 100, false, true, 2, false, false, false, false) + DrawMarker( 1, + Config.CheckPoints[nextCheckPoint].Pos.x, + Config.CheckPoints[nextCheckPoint].Pos.y, + Config.CheckPoints[nextCheckPoint].Pos.z, + 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 204, 102, 100, + false, true, 2, false, false, false, false + ) end if distance <= 3.0 then @@ -282,33 +341,33 @@ CreateThread(function() sleep = 0 ESX.ShowHelpNotification(CurrentActionMsg) - if (IsControlJustReleased(0, 38)) and (CurrentAction == 'dmvschool_menu') then + if (IsControlJustReleased(0, 38)) and (CurrentAction == "dmvschool_menu") then OpenDMVSchoolMenu() CurrentAction = nil end end - local isInMarker = false + local isInMarker = false local currentZone = nil - for k,v in pairs(Config.Zones) do + for k, v in pairs(Config.Zones) do local Pos = vector3(v.Pos.x, v.Pos.y, v.Pos.z) - if(#(coords - Pos) < v.Size.x) then + if #(coords - Pos) < v.Size.x then sleep = 0 - isInMarker = true + isInMarker = true currentZone = k end end if (isInMarker and not HasAlreadyEnteredMarker) or (isInMarker and LastZone ~= currentZone) then HasAlreadyEnteredMarker = true - LastZone = currentZone - TriggerEvent('esx_dmvschool:hasEnteredMarker', currentZone) + LastZone = currentZone + TriggerEvent("esx_dmvschool:hasEnteredMarker", currentZone) end if not isInMarker and HasAlreadyEnteredMarker then HasAlreadyEnteredMarker = false - TriggerEvent('esx_dmvschool:hasExitedMarker', LastZone) + TriggerEvent("esx_dmvschool:hasExitedMarker", LastZone) end Wait(sleep) end @@ -319,41 +378,43 @@ CreateThread(function() while true do local sleep = 1500 - if CurrentTest == 'drive' then + if CurrentTest == "drive" then sleep = 0 local playerPed = PlayerPedId() if IsPedInAnyVehicle(playerPed, false) then + local vehicle = GetVehiclePedIsIn(playerPed, false) + local speed = GetEntitySpeed(vehicle) * Config.SpeedMultiplier - local vehicle = GetVehiclePedIsIn(playerPed, false) - local speed = GetEntitySpeed(vehicle) * Config.SpeedMultiplier - local tooMuchSpeed = false - - for k,v in pairs(Config.SpeedLimits) do + for k, v in pairs(Config.SpeedLimits) do if CurrentZoneType == k and speed > v then - tooMuchSpeed = true - - if not IsAboveSpeedLimit then - DriveErrors += 1 - IsAboveSpeedLimit = true - - ESX.ShowNotification(_U('driving_too_fast', v)) - ESX.ShowNotification(_U('errors', DriveErrors, Config.MaxErrors)) - end + DriveErrors += 1 + ESX.ShowNotification(TranslateCap("driving_too_fast", v)) + ESX.ShowNotification(TranslateCap("errors", DriveErrors, Config.MaxErrors)) + sleep = (Config.SpeedingErrorDelay < 5000) and 5000 or Config.SpeedingErrorDelay end end + end + end + Wait(sleep) + end +end) - if not tooMuchSpeed then - IsAboveSpeedLimit = false - end +CreateThread(function() + while true do + local sleep = 1500 + if CurrentTest == "drive" then + sleep = 0 + local playerPed = PlayerPedId() + if IsPedInAnyVehicle(playerPed, false) then + local vehicle = GetVehiclePedIsIn(playerPed, false) local health = GetEntityHealth(vehicle) if health < LastVehicleHealth then - DriveErrors += 1 - ESX.ShowNotification(_U('you_damaged_veh')) - ESX.ShowNotification(_U('errors', DriveErrors, Config.MaxErrors)) + ESX.ShowNotification(TranslateCap("you_damaged_veh")) + ESX.ShowNotification(TranslateCap("errors", DriveErrors, Config.MaxErrors)) -- avoid stacking faults LastVehicleHealth = health diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/config.lua b/server-data/resources/[esx_addons]/esx_dmvschool/config.lua index 8cadcc4e7..0a8c6c790 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/config.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/config.lua @@ -2,7 +2,8 @@ Config = {} Config.DrawDistance = 10.0 Config.MaxErrors = 5 Config.SpeedMultiplier = 3.6 -Config.Locale = 'en' +Config.SpeedingErrorDelay = 5000 --Min: 5000ms +Config.Locale = GetConvar('esx:locale', 'en') Config.Prices = { dmv = 500, @@ -46,14 +47,14 @@ Config.CheckPoints = { { Pos = {x = 255.139, y = -1400.731, z = 29.537}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('next_point_speed', Config.SpeedLimits['residence']), 5000) + DrawMissionText(TranslateCap('next_point_speed', Config.SpeedLimits['residence']), 5000) end }, { Pos = {x = 271.874, y = -1370.574, z = 30.932}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, @@ -61,13 +62,13 @@ Config.CheckPoints = { Pos = {x = 234.907, y = -1345.385, z = 29.542}, Action = function(playerPed, vehicle, setCurrentZoneType) CreateThread(function() - DrawMissionText(_U('stop_for_ped'), 5000) + DrawMissionText(TranslateCap('stop_for_ped'), 5000) PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true) FreezeEntityPosition(vehicle, true) Wait(4000) FreezeEntityPosition(vehicle, false) - DrawMissionText(_U('good_lets_cont'), 5000) + DrawMissionText(TranslateCap('good_lets_cont'), 5000) end) end }, @@ -78,13 +79,13 @@ Config.CheckPoints = { setCurrentZoneType('town') CreateThread(function() - DrawMissionText(_U('stop_look_left', Config.SpeedLimits['town']), 5000) + DrawMissionText(TranslateCap('stop_look_left', Config.SpeedLimits['town']), 5000) PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true) FreezeEntityPosition(vehicle, true) Wait(6000) FreezeEntityPosition(vehicle, false) - DrawMissionText(_U('good_turn_right'), 5000) + DrawMissionText(TranslateCap('good_turn_right'), 5000) end) end }, @@ -92,21 +93,21 @@ Config.CheckPoints = { { Pos = {x = 178.550, y = -1401.755, z = 27.725}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('watch_traffic_lightson'), 5000) + DrawMissionText(TranslateCap('watch_traffic_lightson'), 5000) end }, { Pos = {x = 113.160, y = -1365.276, z = 27.725}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, { Pos = {x = -73.542, y = -1364.335, z = 27.789}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('stop_for_passing'), 5000) + DrawMissionText(TranslateCap('stop_for_passing'), 5000) PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true) FreezeEntityPosition(vehicle, true) Wait(6000) @@ -117,14 +118,14 @@ Config.CheckPoints = { { Pos = {x = -355.143, y = -1420.282, z = 27.868}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, { Pos = {x = -439.148, y = -1417.100, z = 27.704}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, @@ -133,7 +134,7 @@ Config.CheckPoints = { Action = function(playerPed, vehicle, setCurrentZoneType) setCurrentZoneType('freeway') - DrawMissionText(_U('hway_time', Config.SpeedLimits['freeway']), 5000) + DrawMissionText(TranslateCap('hway_time', Config.SpeedLimits['freeway']), 5000) PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true) end }, @@ -141,21 +142,21 @@ Config.CheckPoints = { { Pos = {x = -463.237, y = -1592.178, z = 37.519}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, { Pos = {x = -900.647, y = -1986.28, z = 26.109}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, { Pos = {x = 1225.759, y = -1948.792, z = 38.718}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('go_next_point'), 5000) + DrawMissionText(TranslateCap('go_next_point'), 5000) end }, @@ -163,14 +164,14 @@ Config.CheckPoints = { Pos = {x = 1225.759, y = -1948.792, z = 38.718}, Action = function(playerPed, vehicle, setCurrentZoneType) setCurrentZoneType('town') - DrawMissionText(_U('in_town_speed', Config.SpeedLimits['town']), 5000) + DrawMissionText(TranslateCap('in_town_speed', Config.SpeedLimits['town']), 5000) end }, { Pos = {x = 1163.603, y = -1841.771, z = 35.679}, Action = function(playerPed, vehicle, setCurrentZoneType) - DrawMissionText(_U('gratz_stay_alert'), 5000) + DrawMissionText(TranslateCap('gratz_stay_alert'), 5000) PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true) end }, diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql b/server-data/resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql index 26fae51d5..85257ab9b 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql +++ b/server-data/resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql @@ -1,6 +1,6 @@ INSERT INTO `licenses` (`type`, `label`) VALUES - ('dmv', 'Driving Permit'), - ('drive', 'Drivers License'), - ('drive_bike', 'Motorcycle License'), - ('drive_truck', 'Commercial Drivers License') -; + ('dmv', 'Code de la route'), + ('drive', 'Permis de conduire'), + ('drive_bike', 'Permis moto'), + ('drive_truck', 'Permis camion') +; \ No newline at end of file diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/fxmanifest.lua b/server-data/resources/[esx_addons]/esx_dmvschool/fxmanifest.lua index fb24328c2..106604ddc 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/fxmanifest.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/fxmanifest.lua @@ -2,9 +2,10 @@ fx_version 'adamant' game 'gta5' -description 'ESX DMV School' +description "A DMV School for players to get their drivers license" -version '1.0.0' +version '1.0' +legacyversion '1.9.1' lua54 'yes' diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/de.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/de.lua index 0ace2ae4c..952e955f2 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/de.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/de.lua @@ -1,29 +1,29 @@ -Locales['de'] = { - ['you_paid'] = 'Du zahlst %s€ an die Fahrschule!', - ['go_next_point'] = 'Fahre zum nächsten Punkt!', - ['in_town_speed'] = 'Du betrittst die Stadt! Neues Geschwindigkeitslimit: %s km/h', - ['next_point_speed'] = 'Fahre zum nächsten Punkt. Neues Geschwindigkeitslimit: %s km/h', - ['stop_for_ped'] = '~r~Stoppe, und lasse den Fußgänger den Weg passieren!', - ['good_lets_cont'] = 'Gut! Weiter so.', - ['stop_look_left'] = '~r~Stopp und gucke Links. Geschwindigkeitslimit: %s km/h', - ['good_turn_right'] = 'Gut, biege rechts ab, und folge der Linie!', - ['watch_traffic_lightson'] = 'Gucke auf den Vehrkehr und schalte deine Lichter an!', - ['stop_for_passing'] = '~r~Stopp für Fahrende fahrzeuge!', - ['hway_time'] = 'Es ist Zeit auf der Autobahn zu fahren! Neues Geschwindigkeitslimit: %s km/h', - ['gratz_stay_alert'] = 'Ich bin Stolz auf dich! Jedoch bleibe ~r~wachsam während du fährst!', - ['passed_test'] = 'Du hast den Test bestanden! Glückwunsch!', - ['failed_test'] = 'Du hast ~r~leider den Test nicht bestanden! Viel Glück beim nächsten mal!', - ['theory_test'] = 'Theoretische Fahrprüfung', - ['road_test_car'] = 'Auto Führerscheinprüfung', - ['road_test_bike'] = 'Motorrad Führerscheinprüfung', - ['road_test_truck'] = 'LKW Führerscheinprüfung', - ['school_item'] = '%s€', - ['driving_school'] = 'Fahrschule', - ['press_open_menu'] = 'Drücke [E] um das Menü zu öffnen!', - ['driving_school_blip'] = 'Fahrschule', - ['driving_test_complete'] = 'Führerschein Test beendet!', - ['driving_too_fast'] = '~r~Du bist zu Schnell Das derzeitige Geschwindigkeitslimit beträgt: %s km/h!', - ['errors'] = 'Fehler: ~r~%s/%s', - ['you_damaged_veh'] = 'Du hast das Fahrzeug beschädigt!', - ['not_enough_money'] = 'Du hast nicht genug Geld!', +Locales["de"] = { + ["you_paid"] = "Du zahlst %s€ an die Fahrschule!", + ["go_next_point"] = "Fahre zum nächsten Punkt!", + ["in_town_speed"] = "Du betrittst die Stadt! Neues Geschwindigkeitslimit: %s km/h", + ["next_point_speed"] = "Fahre zum nächsten Punkt. Neues Geschwindigkeitslimit: %s km/h", + ["stop_for_ped"] = "~r~Stoppe, und lasse den Fußgänger den Weg passieren!", + ["good_lets_cont"] = "Gut! Weiter so.", + ["stop_look_left"] = "~r~Stopp und gucke Links. Geschwindigkeitslimit: %s km/h", + ["good_turn_right"] = "Gut, biege rechts ab, und folge der Linie!", + ["watch_traffic_lightson"] = "Gucke auf den Vehrkehr und schalte deine Lichter an!", + ["stop_for_passing"] = "~r~Stopp für Fahrende fahrzeuge!", + ["hway_time"] = "Es ist Zeit auf der Autobahn zu fahren! Neues Geschwindigkeitslimit: %s km/h", + ["gratz_stay_alert"] = "Ich bin Stolz auf dich! Jedoch bleibe ~r~wachsam während du fährst!", + ["passed_test"] = "Du hast den Test bestanden! Glückwunsch!", + ["failed_test"] = "Du hast ~r~leider den Test nicht bestanden! Viel Glück beim nächsten mal!", + ["theory_test"] = "Theoretische Fahrprüfung", + ["road_test_car"] = "Auto Führerscheinprüfung", + ["road_test_bike"] = "Motorrad Führerscheinprüfung", + ["road_test_truck"] = "LKW Führerscheinprüfung", + ["school_item"] = "%s€", + ["driving_school"] = "Fahrschule", + ["press_open_menu"] = "Drücke [E] um das Menü zu öffnen!", + ["driving_school_blip"] = "Fahrschule", + ["driving_test_complete"] = "Führerschein Test beendet!", + ["driving_too_fast"] = "~r~Du bist zu Schnell Das derzeitige Geschwindigkeitslimit beträgt: %s km/h!", + ["errors"] = "Fehler: ~r~%s/%s", + ["you_damaged_veh"] = "Du hast das Fahrzeug beschädigt!", + ["not_enough_money"] = "Du hast nicht genug Geld!", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/en.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/en.lua index 7258cb45f..ec03dee91 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/en.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/en.lua @@ -1,29 +1,29 @@ -Locales['en'] = { - ['you_paid'] = 'you paid $%s to the DMV school', - ['go_next_point'] = 'go to the next point!', - ['in_town_speed'] = 'entered town, pay attention to your speed! Speed Limit: %s km/h', - ['next_point_speed'] = 'go to the next point! Speed Limit: %s km/h', - ['stop_for_ped'] = '~r~Stop for the pedestrian crossing', - ['good_lets_cont'] = 'Good, continue.', - ['stop_look_left'] = '~r~Stop and look left. Speed Limit: %s km/h', - ['good_turn_right'] = 'Good, turn right and follow the line', - ['watch_traffic_lightson'] = 'watch the traffic and turn on your lights!', - ['stop_for_passing'] = '~r~Stop for passing vehicles!', - ['hway_time'] = 'it\'s time to drive on the highway! Speed Limit: %s km/h', - ['gratz_stay_alert'] = 'i\'m impressed, but don\'t forget to stay ~r~alert whilst driving!', - ['passed_test'] = 'you passed the test, congratulations!', - ['failed_test'] = 'you ~r~failed the test, better luck next time!', - ['theory_test'] = 'theoretical Driving Test', - ['road_test_car'] = 'driving Test', - ['road_test_bike'] = 'motorcycle Skills Test', - ['road_test_truck'] = 'truck Skills Test', - ['school_item'] = '$%s', - ['driving_school'] = 'driving School', - ['press_open_menu'] = 'press [E] to open the menu', - ['driving_school_blip'] = 'driving School', - ['driving_test_complete'] = 'driving test completed', - ['driving_too_fast'] = '~r~You\'re driving too fast, the current speed limit is: %s km/h!', - ['errors'] = 'mistakes: ~r~%s/%s', - ['you_damaged_veh'] = 'you damaged the vehicle', - ['not_enough_money'] = 'You don\'t have enough money', +Locales["en"] = { + ["you_paid"] = "you paid $%s to the DMV school", + ["go_next_point"] = "go to the next point!", + ["in_town_speed"] = "entered town, pay attention to your speed! Speed Limit: %s km/h", + ["next_point_speed"] = "go to the next point! Speed Limit: %s km/h", + ["stop_for_ped"] = "~r~Stop for the pedestrian crossing", + ["good_lets_cont"] = "Good, continue.", + ["stop_look_left"] = "~r~Stop and look left. Speed Limit: %s km/h", + ["good_turn_right"] = "Good, turn right and follow the line", + ["watch_traffic_lightson"] = "watch the traffic and turn on your lights!", + ["stop_for_passing"] = "~r~Stop for passing vehicles!", + ["hway_time"] = "it's time to drive on the highway! Speed Limit: %s km/h", + ["gratz_stay_alert"] = "i'm impressed, but don't forget to stay ~r~alert whilst driving!", + ["passed_test"] = "you passed the test, congratulations!", + ["failed_test"] = "you ~r~failed the test, better luck next time!", + ["theory_test"] = "theoretical Driving Test", + ["road_test_car"] = "driving Test", + ["road_test_bike"] = "motorcycle Skills Test", + ["road_test_truck"] = "truck Skills Test", + ["school_item"] = "$%s", + ["driving_school"] = "driving School", + ["press_open_menu"] = "press [E] to open the menu", + ["driving_school_blip"] = "driving School", + ["driving_test_complete"] = "driving test completed", + ["driving_too_fast"] = "~r~You're driving too fast, the current speed limit is: %s km/h!", + ["errors"] = "mistakes: ~r~%s/%s", + ["you_damaged_veh"] = "you damaged the vehicle", + ["not_enough_money"] = "You don't have enough money", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/es.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/es.lua index 1d67c113b..0aa04f54a 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/es.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/es.lua @@ -1,29 +1,29 @@ -Locales['es'] = { - ['you_paid'] = 'Pagaste %s$ a la autoescuela', - ['go_next_point'] = '¡Vete al siguiente punto!', - ['in_town_speed'] = '¡Entraste a la ciudad, presta atención a tu velocidad! Límite de velocidad: %s km/h', - ['next_point_speed'] = '¡Vete al siguiente punto! Límite de velocidad: %s km/h', - ['stop_for_ped'] = '~r~Para en el paso de peatones', - ['good_lets_cont'] = 'Bien, continua', - ['stop_look_left'] = '~r~Para y mira a la izquierda. Límite de velocidad: %s km/h', - ['good_turn_right'] = 'Bien, gira a la derecha y sigue la línea', - ['watch_traffic_lightson'] = '¡Mira el tráfico y enciende las luces!', - ['stop_for_passing'] = '¡~r~Para para que pasen los vehículos!', - ['hway_time'] = '¡Es hora de conducir por la autopista! Límite de velocidad: %s km/h', - ['gratz_stay_alert'] = '¡Estoy impresionado pero no dejes de estar ~r~alerta mientras conduces!', - ['passed_test'] = 'Has aprobado el examen, ¡Enorabuena!', - ['failed_test'] = 'Has ~r~suspendido el examen, ¡Más suerte la próxima vez!', - ['theory_test'] = 'Examen teórico de conducir', - ['road_test_car'] = 'Examen práctico de conducir', - ['road_test_bike'] = 'Examen práctico de moto', - ['road_test_truck'] = 'Examen práctico de camiones', - ['school_item'] = '%s$', - ['driving_school'] = 'Escuela de conducción', - ['press_open_menu'] = 'Pulsa [E] para abrir el menú', - ['driving_school_blip'] = 'Autoescuela', - ['driving_test_complete'] = 'Examen de conducir finalizado', - ['driving_too_fast'] = '¡~r~Estás conduciendo muy rápido, el límite de velocidad actual es: %s km/h!', - ['errors'] = 'Fallos: ~r~%s / %s', - ['you_damaged_veh'] = '¡Has dañado el vehículo!', - ['not_enough_money'] = 'No tienes suficiente dinero' +Locales["es"] = { + ["you_paid"] = "Pagaste %s$ a la autoescuela", + ["go_next_point"] = "¡Vete al siguiente punto!", + ["in_town_speed"] = "¡Entraste a la ciudad, presta atención a tu velocidad! Límite de velocidad: %s km/h", + ["next_point_speed"] = "¡Vete al siguiente punto! Límite de velocidad: %s km/h", + ["stop_for_ped"] = "~r~Para en el paso de peatones", + ["good_lets_cont"] = "Bien, continua", + ["stop_look_left"] = "~r~Para y mira a la izquierda. Límite de velocidad: %s km/h", + ["good_turn_right"] = "Bien, gira a la derecha y sigue la línea", + ["watch_traffic_lightson"] = "¡Mira el tráfico y enciende las luces!", + ["stop_for_passing"] = "¡~r~Para para que pasen los vehículos!", + ["hway_time"] = "¡Es hora de conducir por la autopista! Límite de velocidad: %s km/h", + ["gratz_stay_alert"] = "¡Estoy impresionado pero no dejes de estar ~r~alerta mientras conduces!", + ["passed_test"] = "Has aprobado el examen, ¡Enorabuena!", + ["failed_test"] = "Has ~r~suspendido el examen, ¡Más suerte la próxima vez!", + ["theory_test"] = "Examen teórico de conducir", + ["road_test_car"] = "Examen práctico de conducir", + ["road_test_bike"] = "Examen práctico de moto", + ["road_test_truck"] = "Examen práctico de camiones", + ["school_item"] = "%s$", + ["driving_school"] = "Escuela de conducción", + ["press_open_menu"] = "Pulsa [E] para abrir el menú", + ["driving_school_blip"] = "Autoescuela", + ["driving_test_complete"] = "Examen de conducir finalizado", + ["driving_too_fast"] = "¡~r~Estás conduciendo muy rápido, el límite de velocidad actual es: %s km/h!", + ["errors"] = "Fallos: ~r~%s / %s", + ["you_damaged_veh"] = "¡Has dañado el vehículo!", + ["not_enough_money"] = "No tienes suficiente dinero", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/fi.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/fi.lua index 88e3ab9fd..db15dfee7 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/fi.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/fi.lua @@ -1,29 +1,29 @@ -Locales['fi'] = { - ['you_paid'] = 'Sinä maksoit $%s autokoululle', - ['go_next_point'] = 'Mene seuraavaan pisteeseen.', - ['in_town_speed'] = 'Saavuit kaupunkiin! Seuraa nopeuttasi Nopeusrajoitus: %s km/h', - ['next_point_speed'] = 'mene seuraavaan pisteeseen Nopeusrajoitus: %s km/h', - ['stop_for_ped'] = '~r~Pysähdy katso tietä ylittäviä jalankulikijoita', - ['good_lets_cont'] = 'Hyvä, jatkakaa.', - ['stop_look_left'] = '~r~Pysähdy ja katso vasemmalle. Nopeusrajoitus: %s km/h', - ['good_turn_right'] = 'Hyvä, käänny oikealle ja seuraa kaistaa', - ['watch_traffic_lightson'] = 'Seuraa liikennettä, ja käänny kun valot ovat vihreät!', - ['stop_for_passing'] = '~r~Pysähdy ohi menevien autojen vuoksi', - ['hway_time'] = 'On aika mennä moottoritielle. Nopeusrajoitus: %s km/h', - ['gratz_stay_alert'] = 'Onnitelut, ole ~r~tarkkana kun ajat!', - ['passed_test'] = 'Sinä läpäisit kokeen', - ['failed_test'] = 'Sinä ~r~epäonnistuit kokeessa', - ['theory_test'] = 'Teoriakoe', - ['road_test_car'] = 'Ajokoe', - ['road_test_bike'] = 'Moottoripyörä ajokoe', - ['road_test_truck'] = 'Rekka ajokoe', - ['school_item'] = '$%s', - ['driving_school'] = 'Autokoulu', - ['press_open_menu'] = 'Paina [E] hankkiaksesi ajokortti', - ['driving_school_blip'] = 'Autokoulu', - ['driving_test_complete'] = 'ajokoe suoritettu', - ['driving_too_fast'] = '~r~Ajat liian nopeaa! Hidasta! Nopeusrajoitus: %s km/h!', - ['errors'] = 'mistakes: ~r~%s/%s', - ['you_damaged_veh'] = 'Vahingoitit ajoneuvoa. Aja varovaisemmin...', - ['not_enough_money'] = 'Sinulla ei ole tarpeeksi rahaa' +Locales["fi"] = { + ["you_paid"] = "Sinä maksoit $%s autokoululle", + ["go_next_point"] = "Mene seuraavaan pisteeseen.", + ["in_town_speed"] = "Saavuit kaupunkiin! Seuraa nopeuttasi Nopeusrajoitus: %s km/h", + ["next_point_speed"] = "mene seuraavaan pisteeseen Nopeusrajoitus: %s km/h", + ["stop_for_ped"] = "~r~Pysähdy katso tietä ylittäviä jalankulikijoita", + ["good_lets_cont"] = "Hyvä, jatkakaa.", + ["stop_look_left"] = "~r~Pysähdy ja katso vasemmalle. Nopeusrajoitus: %s km/h", + ["good_turn_right"] = "Hyvä, käänny oikealle ja seuraa kaistaa", + ["watch_traffic_lightson"] = "Seuraa liikennettä, ja käänny kun valot ovat vihreät!", + ["stop_for_passing"] = "~r~Pysähdy ohi menevien autojen vuoksi", + ["hway_time"] = "On aika mennä moottoritielle. Nopeusrajoitus: %s km/h", + ["gratz_stay_alert"] = "Onnitelut, ole ~r~tarkkana kun ajat!", + ["passed_test"] = "Sinä läpäisit kokeen", + ["failed_test"] = "Sinä ~r~epäonnistuit kokeessa", + ["theory_test"] = "Teoriakoe", + ["road_test_car"] = "Ajokoe", + ["road_test_bike"] = "Moottoripyörä ajokoe", + ["road_test_truck"] = "Rekka ajokoe", + ["school_item"] = "$%s", + ["driving_school"] = "Autokoulu", + ["press_open_menu"] = "Paina [E] hankkiaksesi ajokortti", + ["driving_school_blip"] = "Autokoulu", + ["driving_test_complete"] = "ajokoe suoritettu", + ["driving_too_fast"] = "~r~Ajat liian nopeaa! Hidasta! Nopeusrajoitus: %s km/h!", + ["errors"] = "mistakes: ~r~%s/%s", + ["you_damaged_veh"] = "Vahingoitit ajoneuvoa. Aja varovaisemmin...", + ["not_enough_money"] = "Sinulla ei ole tarpeeksi rahaa", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/fr.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/fr.lua index e3db09793..705f18c2d 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/fr.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/fr.lua @@ -1,29 +1,29 @@ -Locales['fr'] = { - ['you_paid'] = 'Vous avez payé $%s', - ['go_next_point'] = 'Allez vers le prochain passage!', - ['in_town_speed'] = 'Entrée en ville, attention à votre vitesse! Vitesse limite: %s km/h', - ['next_point_speed'] = 'Allez vers le prochain passage! Vitesse limite: %s km/h', - ['stop_for_ped'] = 'Faites rapidement un ~r~stop pour le piéton qui traverse', - ['good_lets_cont'] = 'Bien! Continuons!', - ['stop_look_left'] = 'Marquer rapidement un ~r~stop et regardez à votre gauche. Vitesse limite: %s km/h', - ['good_turn_right'] = 'Bien! prenez à droite et suivez votre file', - ['watch_traffic_lightson'] = 'Observez le traffic allumez vos feux!', - ['stop_for_passing'] = 'Arrêtez-vous pour laisser passer les véhicules!', - ['hway_time'] = 'Il est temps d\'aller sur l\'autoroute! Vitesse limite: %s km/h', - ['gratz_stay_alert'] = 'Bravo, restez vigiliant!', - ['passed_test'] = 'Vous avez réussi le test', - ['failed_test'] = 'Vous avez ~r~raté le test', - ['theory_test'] = 'Examen du code', - ['road_test_car'] = 'Examen de conduite [voiture]', - ['road_test_bike'] = 'Examen de conduite [moto]', - ['road_test_truck'] = 'Examen de conduite [camion]', - ['school_item'] = '$%s', - ['driving_school'] = 'École de conduite', - ['press_open_menu'] = 'Appuyez sur [E] pour ouvrir le menu', - ['driving_school_blip'] = 'auto-école', - ['driving_test_complete'] = 'Test de conduite terminé', - ['driving_too_fast'] = 'Vous roulez trop vite, vitesse limite: %s km/h!', - ['errors'] = 'erreurs: ~r~%s/%s', - ['you_damaged_veh'] = 'Vous avez endommagé votre véhicule', - ['not_enough_money'] = 'Tu n\'as pas assez d\'argent' +Locales["fr"] = { + ["you_paid"] = "Vous avez payé $%s", + ["go_next_point"] = "Allez vers le prochain passage!", + ["in_town_speed"] = "Entrée en ville, attention à votre vitesse! Vitesse limite: %s km/h", + ["next_point_speed"] = "Allez vers le prochain passage! Vitesse limite: %s km/h", + ["stop_for_ped"] = "Faites rapidement un ~r~stop pour le piéton qui traverse", + ["good_lets_cont"] = "Bien! Continuons!", + ["stop_look_left"] = "Marquer rapidement un ~r~stop et regardez à votre gauche. Vitesse limite: %s km/h", + ["good_turn_right"] = "Bien! prenez à droite et suivez votre file", + ["watch_traffic_lightson"] = "Observez le traffic allumez vos feux!", + ["stop_for_passing"] = "Arrêtez-vous pour laisser passer les véhicules!", + ["hway_time"] = "Il est temps d'aller sur l'autoroute! Vitesse limite: %s km/h", + ["gratz_stay_alert"] = "Bravo, restez vigiliant!", + ["passed_test"] = "Vous avez réussi le test", + ["failed_test"] = "Vous avez ~r~raté le test", + ["theory_test"] = "Examen du code", + ["road_test_car"] = "Examen de conduite [voiture]", + ["road_test_bike"] = "Examen de conduite [moto]", + ["road_test_truck"] = "Examen de conduite [camion]", + ["school_item"] = "$%s", + ["driving_school"] = "École de conduite", + ["press_open_menu"] = "Appuyez sur [E] pour ouvrir le menu", + ["driving_school_blip"] = "auto-école", + ["driving_test_complete"] = "Test de conduite terminé", + ["driving_too_fast"] = "Vous roulez trop vite, vitesse limite: %s km/h!", + ["errors"] = "erreurs: ~r~%s/%s", + ["you_damaged_veh"] = "Vous avez endommagé votre véhicule", + ["not_enough_money"] = "Tu n'as pas assez d'argent", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/hu.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/hu.lua index 933ae7a46..4d0e1926a 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/hu.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/hu.lua @@ -1,29 +1,29 @@ -Locales['hu'] = { - ['you_paid'] = 'Fizettél $%s az autósiskolának iskolának!', - ['go_next_point'] = 'Menj a kövtkező ponthoz!', - ['in_town_speed'] = 'Beértél a városba, figyelj a sebességedre! A sebesség határ: %s km/h', - ['next_point_speed'] = 'Menj a következő ponthoz! Sebesség határ: %s km/h', - ['stop_for_ped'] = 'Mindig ~r~álj meg a zebránál!', - ['good_lets_cont'] = 'Ügyes, folytasd a vezetést.', - ['stop_look_left'] = '~r~Álj meg és néz balra. Sebesség határ: %s km/h', - ['good_turn_right'] = 'Ügyes, fordulj jobbra, és kövesd a vonalat', - ['watch_traffic_lightson'] = 'Nézd a forgalmat, és kapcsold fel a fényszóróidat!', - ['stop_for_passing'] = '~r~Álj meg a keresztező autóknak!', - ['hway_time'] = 'Itt az idő, hogy először vezess autópályán! Sebesség határ: %s km/h', - ['gratz_stay_alert'] = 'Levagyok nyűgözve, de sose feledd, ~r~NE vezess fáradtan!', - ['passed_test'] = 'Átmentél a vizsgán, gratulálok!', - ['failed_test'] = '~r~Megbuktál a vizsgán, pár óra plusz vezetés után próbáld újra!', - ['theory_test'] = 'Elméleti vizsga', - ['road_test_car'] = 'Személyautó vizsga', - ['road_test_bike'] = ' Nagy motor vizsga', - ['road_test_truck'] = 'Teher autó vizsga', - ['school_item'] = '$%s', - ['driving_school'] = 'Autósiskola', - ['press_open_menu'] = 'Nyomd meg a(z) [E] gombot, hogy megnyisd a menüt.', - ['driving_school_blip'] = 'Autósiskola', - ['driving_test_complete'] = 'A vizsga sikeres volt', - ['driving_too_fast'] = '~r~Túl gyorsan hajtasz,a végén még megállít a rendőr. A sebesség határ: %s km/h!', - ['errors'] = 'Hibapontok: ~r~%s/%s', - ['you_damaged_veh'] = 'Összetörted az autót, ez drága lesz.', - ['not_enough_money'] = 'Nincs elég pénzed!', +Locales["hu"] = { + ["you_paid"] = "Fizettél $%s az autósiskolának iskolának!", + ["go_next_point"] = "Menj a kövtkező ponthoz!", + ["in_town_speed"] = "Beértél a városba, figyelj a sebességedre! A sebesség határ: %s km/h", + ["next_point_speed"] = "Menj a következő ponthoz! Sebesség határ: %s km/h", + ["stop_for_ped"] = "Mindig ~r~álj meg a zebránál!", + ["good_lets_cont"] = "Ügyes, folytasd a vezetést.", + ["stop_look_left"] = "~r~Álj meg és néz balra. Sebesség határ: %s km/h", + ["good_turn_right"] = "Ügyes, fordulj jobbra, és kövesd a vonalat", + ["watch_traffic_lightson"] = "Nézd a forgalmat, és kapcsold fel a fényszóróidat!", + ["stop_for_passing"] = "~r~Álj meg a keresztező autóknak!", + ["hway_time"] = "Itt az idő, hogy először vezess autópályán! Sebesség határ: %s km/h", + ["gratz_stay_alert"] = "Levagyok nyűgözve, de sose feledd, ~r~NE vezess fáradtan!", + ["passed_test"] = "Átmentél a vizsgán, gratulálok!", + ["failed_test"] = "~r~Megbuktál a vizsgán, pár óra plusz vezetés után próbáld újra!", + ["theory_test"] = "Elméleti vizsga", + ["road_test_car"] = "Személyautó vizsga", + ["road_test_bike"] = " Nagy motor vizsga", + ["road_test_truck"] = "Teher autó vizsga", + ["school_item"] = "$%s", + ["driving_school"] = "Autósiskola", + ["press_open_menu"] = "Nyomd meg a(z) [E] gombot, hogy megnyisd a menüt.", + ["driving_school_blip"] = "Autósiskola", + ["driving_test_complete"] = "A vizsga sikeres volt", + ["driving_too_fast"] = "~r~Túl gyorsan hajtasz,a végén még megállít a rendőr. A sebesség határ: %s km/h!", + ["errors"] = "Hibapontok: ~r~%s/%s", + ["you_damaged_veh"] = "Összetörted az autót, ez drága lesz.", + ["not_enough_money"] = "Nincs elég pénzed!", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/it.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/it.lua index 340798273..b68e35d84 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/it.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/it.lua @@ -1,29 +1,29 @@ -Locales['it'] = { - ['you_paid'] = 'hai pagato $%s alla scuola guida', - ['go_next_point'] = 'vai al punto successivo!', - ['in_town_speed'] = 'sei entrato in città, fai attenzione alla tua velocità! Limite di velocità: %s km/h', - ['next_point_speed'] = 'vai al punto successivo! Limite di velocità: %s km/h', - ['stop_for_ped'] = '~r~Stop per il passaggio pedonale', - ['good_lets_cont'] = 'Bene, continua.', - ['stop_look_left'] = '~r~Fermati e guarda a sinistra. Limite di velocità: %s km/h', - ['good_turn_right'] = 'Bene, gira a destra e segui la linea', - ['watch_traffic_lightson'] = 'guarda il traffico e accendi le luci!', - ['stop_for_passing'] = '~r~Fermati per i veicoli in transito!', - ['hway_time'] = 'è ora di guidare in autostrada! Limite di velocità: %s km/h', - ['gratz_stay_alert'] = 'sono impressionato, ma non dimenticare di stare in ~r~allerta mentre guidi!', - ['passed_test'] = 'hai superato il test, congratulazioni!', - ['failed_test'] = '~r~non hai superato il test, buona fortuna per la prossima volta!', - ['theory_test'] = 'Quiz teorico', - ['road_test_car'] = 'Test pratico auto', - ['road_test_bike'] = 'Test pratico moto', - ['road_test_truck'] = 'Test pratico camion', - ['school_item'] = '$%s', - ['driving_school'] = 'scuola guida', - ['press_open_menu'] = 'premi [E] per aprire il menu', - ['driving_school_blip'] = 'scuola guida', - ['driving_test_complete'] = 'test di guida completato', - ['driving_too_fast'] = '~r~stai guidando troppo veloce, il limite di velocità attuale è: %s km/h!', - ['errors'] = 'errori: ~r~%s/%s', - ['you_damaged_veh'] = 'hai danneggiato il veicolo', - ['not_enough_money'] = 'non hai abbastanza soldi', +Locales["it"] = { + ["you_paid"] = "hai pagato $%s alla scuola guida", + ["go_next_point"] = "vai al punto successivo!", + ["in_town_speed"] = "sei entrato in città, fai attenzione alla tua velocità! Limite di velocità: %s km/h", + ["next_point_speed"] = "vai al punto successivo! Limite di velocità: %s km/h", + ["stop_for_ped"] = "~r~Stop per il passaggio pedonale", + ["good_lets_cont"] = "Bene, continua.", + ["stop_look_left"] = "~r~Fermati e guarda a sinistra. Limite di velocità: %s km/h", + ["good_turn_right"] = "Bene, gira a destra e segui la linea", + ["watch_traffic_lightson"] = "guarda il traffico e accendi le luci!", + ["stop_for_passing"] = "~r~Fermati per i veicoli in transito!", + ["hway_time"] = "è ora di guidare in autostrada! Limite di velocità: %s km/h", + ["gratz_stay_alert"] = "sono impressionato, ma non dimenticare di stare in ~r~allerta mentre guidi!", + ["passed_test"] = "hai superato il test, congratulazioni!", + ["failed_test"] = "~r~non hai superato il test, buona fortuna per la prossima volta!", + ["theory_test"] = "Quiz teorico", + ["road_test_car"] = "Test pratico auto", + ["road_test_bike"] = "Test pratico moto", + ["road_test_truck"] = "Test pratico camion", + ["school_item"] = "$%s", + ["driving_school"] = "scuola guida", + ["press_open_menu"] = "premi [E] per aprire il menu", + ["driving_school_blip"] = "scuola guida", + ["driving_test_complete"] = "test di guida completato", + ["driving_too_fast"] = "~r~stai guidando troppo veloce, il limite di velocità attuale è: %s km/h!", + ["errors"] = "errori: ~r~%s/%s", + ["you_damaged_veh"] = "hai danneggiato il veicolo", + ["not_enough_money"] = "non hai abbastanza soldi", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/nl.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/nl.lua index c06ce9aec..ea081e68a 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/nl.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/nl.lua @@ -1,29 +1,29 @@ -Locales['nl'] = { - ['you_paid'] = 'je betaalde €%s aan het CBR', - ['go_next_point'] = 'ga naar het volgende punt!', - ['in_town_speed'] = 'We zitten in de stad, let op je snelheid! Snelheids limiet: %s km/h', - ['next_point_speed'] = 'Ga naar het volgende punt! Snelheids limiet: %s km/h', - ['stop_for_ped'] = '~r~Stop voor de overstekende voetganger', - ['good_lets_cont'] = 'Goed, ga verder.', - ['stop_look_left'] = '~r~Stop en kijk naar links Snelheids limiet: %s km/h', - ['good_turn_right'] = 'Goed, ga naar rechts en volg de weg.', - ['watch_traffic_lightson'] = 'Let op het verkeer en zet je lichten aan!', - ['stop_for_passing'] = '~r~Stop voor passerende voertuigen!', - ['hway_time'] = 'Het is tijd om op de snelweg te rijden! Snelheids limiet: %s km/h', - ['gratz_stay_alert'] = 'Ik ben onder de indruk, vergeet tijdens het rijden niet om ~r~alert te blijven!', - ['passed_test'] = 'je bent geslaagd, gefeliciteerd!', - ['failed_test'] = 'je bent ~r~gezakt~s~, volgende keer beter!', - ['theory_test'] = 'Theorie examen', - ['road_test_car'] = 'Praktijk examen', - ['road_test_bike'] = 'Motor examen', - ['road_test_truck'] = 'Vrachtwagen examen', - ['school_item'] = '€%s', - ['driving_school'] = 'CBR', - ['press_open_menu'] = 'klik op [E] om het menu te openen', - ['driving_school_blip'] = 'CBR', - ['driving_test_complete'] = 'Praktijk examen gedaan', - ['driving_too_fast'] = '~r~Je rijd te snel! De snelheids limiet is: %s km/h!', - ['errors'] = 'Fouten: ~r~%s/%s', - ['you_damaged_veh'] = 'Je hebt het voertuig beschadigd', - ['not_enough_money'] = 'Je hebt niet genoeg geld', +Locales["nl"] = { + ["you_paid"] = "je betaalde €%s aan het CBR", + ["go_next_point"] = "ga naar het volgende punt!", + ["in_town_speed"] = "We zitten in de stad, let op je snelheid! Snelheids limiet: %s km/h", + ["next_point_speed"] = "Ga naar het volgende punt! Snelheids limiet: %s km/h", + ["stop_for_ped"] = "~r~Stop voor de overstekende voetganger", + ["good_lets_cont"] = "Goed, ga verder.", + ["stop_look_left"] = "~r~Stop en kijk naar links Snelheids limiet: %s km/h", + ["good_turn_right"] = "Goed, ga naar rechts en volg de weg.", + ["watch_traffic_lightson"] = "Let op het verkeer en zet je lichten aan!", + ["stop_for_passing"] = "~r~Stop voor passerende voertuigen!", + ["hway_time"] = "Het is tijd om op de snelweg te rijden! Snelheids limiet: %s km/h", + ["gratz_stay_alert"] = "Ik ben onder de indruk, vergeet tijdens het rijden niet om ~r~alert te blijven!", + ["passed_test"] = "je bent geslaagd, gefeliciteerd!", + ["failed_test"] = "je bent ~r~gezakt~s~, volgende keer beter!", + ["theory_test"] = "Theorie examen", + ["road_test_car"] = "Praktijk examen", + ["road_test_bike"] = "Motor examen", + ["road_test_truck"] = "Vrachtwagen examen", + ["school_item"] = "€%s", + ["driving_school"] = "CBR", + ["press_open_menu"] = "klik op [E] om het menu te openen", + ["driving_school_blip"] = "CBR", + ["driving_test_complete"] = "Praktijk examen gedaan", + ["driving_too_fast"] = "~r~Je rijd te snel! De snelheids limiet is: %s km/h!", + ["errors"] = "Fouten: ~r~%s/%s", + ["you_damaged_veh"] = "Je hebt het voertuig beschadigd", + ["not_enough_money"] = "Je hebt niet genoeg geld", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/pl.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/pl.lua index b1527fc55..2e685eee6 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/pl.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/pl.lua @@ -1,29 +1,29 @@ -Locales['pl'] = { - ['you_paid'] = 'zapłaciłes $%s dla szkoły jazdy.', - ['go_next_point'] = 'udaj się do nastepnego punktu!', - ['in_town_speed'] = 'wjeżdżasz do miasta, zachowaj ostrożność! Ograniczenie prędkości: %s km/h', - ['next_point_speed'] = 'udaj się do nastepnego punktu! Ograniczenie prędkości: %s km/h', - ['stop_for_ped'] = '~r~Stop przejście dla pieszych', - ['good_lets_cont'] = 'Świetnie, kontynuuj.', - ['stop_look_left'] = '~r~Stop spójrz w lewo. Ograniczenie prędkości: %s km/h', - ['good_turn_right'] = 'Świetnie, skręć w prawo i podążaj za linią', - ['watch_traffic_lightson'] = 'obserwuj ruch uliczny i włącz światła!', - ['stop_for_passing'] = '~r~Stop przepuść przejeżdźające pojazdy!', - ['hway_time'] = 'czas na autostradę! Ograniczenie prędkości: %s km/h', - ['gratz_stay_alert'] = 'jestem pod wrażeniem, ale nie zapomnij się zatrzymać ~r~alert podczas jazdy!', - ['passed_test'] = 'Zdałeś egzamin, gratulacje!', - ['failed_test'] = '~r~Oblałeś egzamin, powodzenia następnym razem!', - ['theory_test'] = 'ezgamin Teoretyczny', - ['road_test_car'] = 'egzamin praktyczny kat. B', - ['road_test_bike'] = 'egzamin praktyczny kat. A', - ['road_test_truck'] = 'egzamin praktyczny kat. C', - ['school_item'] = '$%s', - ['driving_school'] = 'szkoła jazdy', - ['press_open_menu'] = 'wciśnij [E] by otworzyć menu', - ['driving_school_blip'] = 'ośrodek egzaminacyjny', - ['driving_test_complete'] = 'test praktyczny zakończony', - ['driving_too_fast'] = '~r~Przekroczenie prędkości! , limit prędkości to: %s km/h!', - ['errors'] = 'błędy: ~r~%s/%s', - ['you_damaged_veh'] = 'uszkodziłeś auto', - ['not_enough_money'] = 'Nie masz wystarczająco dużo pieniędzy' +Locales["pl"] = { + ["you_paid"] = "zapłaciłes $%s dla szkoły jazdy.", + ["go_next_point"] = "udaj się do nastepnego punktu!", + ["in_town_speed"] = "wjeżdżasz do miasta, zachowaj ostrożność! Ograniczenie prędkości: %s km/h", + ["next_point_speed"] = "udaj się do nastepnego punktu! Ograniczenie prędkości: %s km/h", + ["stop_for_ped"] = "~r~Stop przejście dla pieszych", + ["good_lets_cont"] = "Świetnie, kontynuuj.", + ["stop_look_left"] = "~r~Stop spójrz w lewo. Ograniczenie prędkości: %s km/h", + ["good_turn_right"] = "Świetnie, skręć w prawo i podążaj za linią", + ["watch_traffic_lightson"] = "obserwuj ruch uliczny i włącz światła!", + ["stop_for_passing"] = "~r~Stop przepuść przejeżdźające pojazdy!", + ["hway_time"] = "czas na autostradę! Ograniczenie prędkości: %s km/h", + ["gratz_stay_alert"] = "jestem pod wrażeniem, ale nie zapomnij się zatrzymać ~r~alert podczas jazdy!", + ["passed_test"] = "Zdałeś egzamin, gratulacje!", + ["failed_test"] = "~r~Oblałeś egzamin, powodzenia następnym razem!", + ["theory_test"] = "ezgamin Teoretyczny", + ["road_test_car"] = "egzamin praktyczny kat. B", + ["road_test_bike"] = "egzamin praktyczny kat. A", + ["road_test_truck"] = "egzamin praktyczny kat. C", + ["school_item"] = "$%s", + ["driving_school"] = "szkoła jazdy", + ["press_open_menu"] = "wciśnij [E] by otworzyć menu", + ["driving_school_blip"] = "ośrodek egzaminacyjny", + ["driving_test_complete"] = "test praktyczny zakończony", + ["driving_too_fast"] = "~r~Przekroczenie prędkości! , limit prędkości to: %s km/h!", + ["errors"] = "błędy: ~r~%s/%s", + ["you_damaged_veh"] = "uszkodziłeś auto", + ["not_enough_money"] = "Nie masz wystarczająco dużo pieniędzy", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/sr.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/sr.lua index 4386aa6a7..a9f845552 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/sr.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/sr.lua @@ -1,29 +1,29 @@ -Locales['sr'] = { - ['you_paid'] = 'Platili ste $%s AutoŠkoli', - ['go_next_point'] = 'Idite do sledeće tačke!', - ['in_town_speed'] = 'Ušli ste u grad, obratite pažnju na brzinu! Ograničenje Brzine: %s km/h', - ['next_point_speed'] = 'Idite do sledeće tačke! Ograničenje Brzine: %s km/h', - ['stop_for_ped'] = '~r~Stanite da propustite pešaka', - ['good_lets_cont'] = 'Odlično, nastavite.', - ['stop_look_left'] = '~r~Stanite i pogledajte levo. Ograničenje Brzine: %s km/h', - ['good_turn_right'] = 'Odlično, skrenite desno i nastavite pravo', - ['watch_traffic_lightson'] = 'Pratite semafore i uključite vasa svetla!', - ['stop_for_passing'] = '~r~Stanite da propustite vozila!', - ['hway_time'] = 'Vreme je da vozimo na autoputu! Ograničenje Brzine: %s km/h', - ['gratz_stay_alert'] = 'Impresioniran sam, ali ne zaboravite da ostanete ~r~fokusirani dok vozite!', - ['passed_test'] = 'Položili ste test, čestitamo!', - ['failed_test'] = 'Vi ste ~r~pali test, više sreće drugi put!', - ['theory_test'] = 'Teorijski Test', - ['road_test_car'] = 'Polaganje Vožnje', - ['road_test_bike'] = 'Test za Motor', - ['road_test_truck'] = 'Test za Kamion', - ['school_item'] = '$%s', - ['driving_school'] = 'AutoSkola', - ['press_open_menu'] = 'Pritisnite [E] da otvorite meni', - ['driving_school_blip'] = 'AutoŠkola', - ['driving_test_complete'] = 'Polaganje vožnje završeno', - ['driving_too_fast'] = '~r~Vozite prebrzo, trenutno ograničenje brzine: %s km/h!', - ['errors'] = 'Greške: ~r~%s/%s', - ['you_damaged_veh'] = 'Oštetili ste vozilo', - ['not_enough_money'] = 'Nemate dovoljno novca', +Locales["sr"] = { + ["you_paid"] = "Platili ste $%s AutoŠkoli", + ["go_next_point"] = "Idite do sledeće tačke!", + ["in_town_speed"] = "Ušli ste u grad, obratite pažnju na brzinu! Ograničenje Brzine: %s km/h", + ["next_point_speed"] = "Idite do sledeće tačke! Ograničenje Brzine: %s km/h", + ["stop_for_ped"] = "~r~Stanite da propustite pešaka", + ["good_lets_cont"] = "Odlično, nastavite.", + ["stop_look_left"] = "~r~Stanite i pogledajte levo. Ograničenje Brzine: %s km/h", + ["good_turn_right"] = "Odlično, skrenite desno i nastavite pravo", + ["watch_traffic_lightson"] = "Pratite semafore i uključite vasa svetla!", + ["stop_for_passing"] = "~r~Stanite da propustite vozila!", + ["hway_time"] = "Vreme je da vozimo na autoputu! Ograničenje Brzine: %s km/h", + ["gratz_stay_alert"] = "Impresioniran sam, ali ne zaboravite da ostanete ~r~fokusirani dok vozite!", + ["passed_test"] = "Položili ste test, čestitamo!", + ["failed_test"] = "Vi ste ~r~pali test, više sreće drugi put!", + ["theory_test"] = "Teorijski Test", + ["road_test_car"] = "Polaganje Vožnje", + ["road_test_bike"] = "Test za Motor", + ["road_test_truck"] = "Test za Kamion", + ["school_item"] = "$%s", + ["driving_school"] = "AutoSkola", + ["press_open_menu"] = "Pritisnite [E] da otvorite meni", + ["driving_school_blip"] = "AutoŠkola", + ["driving_test_complete"] = "Polaganje vožnje završeno", + ["driving_too_fast"] = "~r~Vozite prebrzo, trenutno ograničenje brzine: %s km/h!", + ["errors"] = "Greške: ~r~%s/%s", + ["you_damaged_veh"] = "Oštetili ste vozilo", + ["not_enough_money"] = "Nemate dovoljno novca", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/sv.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/sv.lua index 11c98c4b8..cd87d3f4b 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/sv.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/sv.lua @@ -1,29 +1,29 @@ -Locales['sv'] = { - ['you_paid'] = 'Du betalade %skr till körskolan!', - ['go_next_point'] = 'Åk till nästa punkt!', - ['in_town_speed'] = 'Du är inne i stan, håll koll på hastigheten! Hastighetsgräns: %s km/h', - ['next_point_speed'] = 'Åk till nästa punkt! Hastighetsgräns: %s km/h', - ['stop_for_ped'] = '~r~Stanna för övergångsstället', - ['good_lets_cont'] = 'Bra, fortsätt.', - ['stop_look_left'] = '~r~Stanna och kolla vänster. Hastighetsgräns: %s km/h', - ['good_turn_right'] = 'Bra, sväng höger och följ linjen', - ['watch_traffic_lightson'] = 'Håll koll på trafiken och sätt på dina lampor!', - ['stop_for_passing'] = '~r~Stanna för förbipasserande fordon!', - ['hway_time'] = 'Dags att köra ut på motorvägen! Hastighetsgräns: %s km/h', - ['gratz_stay_alert'] = 'Jag är imponerad, men glöm inte att vara ~r~alert medans du kör!', - ['passed_test'] = 'Du klarade testet, grattis!', - ['failed_test'] = 'Du ~r~misslyckades med testet, lycka till nästa gång!', - ['theory_test'] = 'Teoretiskt körprov', - ['road_test_car'] = 'Körprov', - ['road_test_bike'] = 'Motorcykel kompetensprov', - ['road_test_truck'] = 'Lastbil färdighetstest', - ['school_item'] = '%skr', - ['driving_school'] = 'Körskola', - ['press_open_menu'] = 'Tryck [E] för att öppna menyn', - ['driving_school_blip'] = 'Körskola', - ['driving_test_complete'] = 'Körprov avklarat', - ['driving_too_fast'] = '~r~Du kör för fort, tillåtna hastighet är: %s km/h!', - ['errors'] = 'Misstag: ~r~%s/%s', - ['you_damaged_veh'] = 'Du skadade fordonet', - ['not_enough_money'] = 'Du har inte tillräckligt med pengar', - } +Locales["sv"] = { + ["you_paid"] = "Du betalade %skr till körskolan!", + ["go_next_point"] = "Åk till nästa punkt!", + ["in_town_speed"] = "Du är inne i stan, håll koll på hastigheten! Hastighetsgräns: %s km/h", + ["next_point_speed"] = "Åk till nästa punkt! Hastighetsgräns: %s km/h", + ["stop_for_ped"] = "~r~Stanna för övergångsstället", + ["good_lets_cont"] = "Bra, fortsätt.", + ["stop_look_left"] = "~r~Stanna och kolla vänster. Hastighetsgräns: %s km/h", + ["good_turn_right"] = "Bra, sväng höger och följ linjen", + ["watch_traffic_lightson"] = "Håll koll på trafiken och sätt på dina lampor!", + ["stop_for_passing"] = "~r~Stanna för förbipasserande fordon!", + ["hway_time"] = "Dags att köra ut på motorvägen! Hastighetsgräns: %s km/h", + ["gratz_stay_alert"] = "Jag är imponerad, men glöm inte att vara ~r~alert medans du kör!", + ["passed_test"] = "Du klarade testet, grattis!", + ["failed_test"] = "Du ~r~misslyckades med testet, lycka till nästa gång!", + ["theory_test"] = "Teoretiskt körprov", + ["road_test_car"] = "Körprov", + ["road_test_bike"] = "Motorcykel kompetensprov", + ["road_test_truck"] = "Lastbil färdighetstest", + ["school_item"] = "%skr", + ["driving_school"] = "Körskola", + ["press_open_menu"] = "Tryck [E] för att öppna menyn", + ["driving_school_blip"] = "Körskola", + ["driving_test_complete"] = "Körprov avklarat", + ["driving_too_fast"] = "~r~Du kör för fort, tillåtna hastighet är: %s km/h!", + ["errors"] = "Misstag: ~r~%s/%s", + ["you_damaged_veh"] = "Du skadade fordonet", + ["not_enough_money"] = "Du har inte tillräckligt med pengar", +} diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/tr.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/tr.lua index 615a333f2..317ad5984 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/tr.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/tr.lua @@ -1,30 +1,29 @@ -Locales['tr'] = { - ['you_paid'] = 'DMV okuluna $%s ödediniz', - ['go_next_point'] = 'Bir sonraki noktaya git!', - ['in_town_speed'] = 'Şehre girdiniz, hızınıza dikkat edin! Hız Sınırı: %s km/sa', - ['next_point_speed'] = 'Bir sonraki noktaya git! Hız Sınırı: %s km/sa', - ['stop_for_ped'] = '~r~Yaya geçidine durun', - ['good_lets_cont'] = 'Harika, devam edin.', - ['stop_look_left'] = '~r~Durun ve sola bakın. Hız Sınırı: %s km/sa', - ['good_turn_right'] = 'Harika, sağa dönün ve çizgiyi takip edin', - ['watch_traffic_lightson'] = 'Trafik kurallarına dikkat edin ve ışıkları açın!', - ['stop_for_passing'] = '~r~Geçen araçlar için durun!', - ['hway_time'] = 'Otoyolda sürmeyi zamanı geldi! Hız Sınırı: %s km/sa', - ['gratz_stay_alert'] = 'Etkilendim, ancak sürerken ~r~uyanık kalmayı unutmayın!', - ['passed_test'] = 'Sınavı geçtiniz, tebrikler!', - ['failed_test'] = 'Sınavı ~r~başaramadınız, bir sonraki sefer daha iyi şanslar!', - ['theory_test'] = 'Teorik Sürüş Sınavı', - ['road_test_car'] = 'Sürüş Sınavı', - ['road_test_bike'] = 'Motosiklet Beceri Sınavı', - ['road_test_truck'] = 'Tır Beceri Sınavı', - ['school_item'] = '$%s', - ['driving_school'] = 'Sürücü Okulu', - ['press_open_menu'] = 'Menüyü açmak için [E] tuşuna basın', - ['driving_school_blip'] = 'Sürücü Okulu', - ['driving_test_complete'] = 'Sürüş testi tamamlandı', - ['driving_too_fast'] = '~r~Çok hızlı sürüyorsunuz, mevcut hız sınırı: %s km/sa!', - ['errors'] = 'Hatalar: ~r~%s/%s', - ['you_damaged_veh'] = 'Araç hasar gördü', - ['not_enough_money'] = 'Yeterli paranız yok', - } - \ No newline at end of file +Locales["tr"] = { + ["you_paid"] = "DMV okuluna $%s ödediniz", + ["go_next_point"] = "Bir sonraki noktaya git!", + ["in_town_speed"] = "Şehre girdiniz, hızınıza dikkat edin! Hız Sınırı: %s km/sa", + ["next_point_speed"] = "Bir sonraki noktaya git! Hız Sınırı: %s km/sa", + ["stop_for_ped"] = "~r~Yaya geçidine durun", + ["good_lets_cont"] = "Harika, devam edin.", + ["stop_look_left"] = "~r~Durun ve sola bakın. Hız Sınırı: %s km/sa", + ["good_turn_right"] = "Harika, sağa dönün ve çizgiyi takip edin", + ["watch_traffic_lightson"] = "Trafik kurallarına dikkat edin ve ışıkları açın!", + ["stop_for_passing"] = "~r~Geçen araçlar için durun!", + ["hway_time"] = "Otoyolda sürmeyi zamanı geldi! Hız Sınırı: %s km/sa", + ["gratz_stay_alert"] = "Etkilendim, ancak sürerken ~r~uyanık kalmayı unutmayın!", + ["passed_test"] = "Sınavı geçtiniz, tebrikler!", + ["failed_test"] = "Sınavı ~r~başaramadınız, bir sonraki sefer daha iyi şanslar!", + ["theory_test"] = "Teorik Sürüş Sınavı", + ["road_test_car"] = "Sürüş Sınavı", + ["road_test_bike"] = "Motosiklet Beceri Sınavı", + ["road_test_truck"] = "Tır Beceri Sınavı", + ["school_item"] = "$%s", + ["driving_school"] = "Sürücü Okulu", + ["press_open_menu"] = "Menüyü açmak için [E] tuşuna basın", + ["driving_school_blip"] = "Sürücü Okulu", + ["driving_test_complete"] = "Sürüş testi tamamlandı", + ["driving_too_fast"] = "~r~Çok hızlı sürüyorsunuz, mevcut hız sınırı: %s km/sa!", + ["errors"] = "Hatalar: ~r~%s/%s", + ["you_damaged_veh"] = "Araç hasar gördü", + ["not_enough_money"] = "Yeterli paranız yok", +} diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua b/server-data/resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua index 42712225c..f553cbf0f 100644 --- a/server-data/resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua +++ b/server-data/resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua @@ -1,29 +1,29 @@ -Locales['zh-cn'] = { - ['you_paid'] = '成功支付驾考学费:$%s', - ['go_next_point'] = '请小心驾驶前往下一考试点!', - ['in_town_speed'] = '请注意进入城区, 请减速! 注意限速: %s km/h', - ['next_point_speed'] = '请小心驾驶前往下一考试点! 注意限速: %s km/h', - ['stop_for_ped'] = '路过~r~人行横道时~s~, 请小心驾驶注意两边行人', - ['good_lets_cont'] = 'Good, 继续.', - ['stop_look_left'] = '驾驶时应~r~时刻保持警惕~s~两边来往车辆. 注意限速: %s km/h', - ['good_turn_right'] = '做的好, 现在右转前往汇入城区主干道', - ['watch_traffic_lightson'] = '请时刻注意驾驶时的道路红绿灯!', - ['stop_for_passing'] = '停车! 有过往车辆时请注意避让', - ['hway_time'] = '现在正在汇入高速公路路段! 注意限速: %s km/h', - ['gratz_stay_alert'] = '完成驾考! 现在请返回驾校! 以后的驾驶中请勿忘记今日所学内容!', - ['passed_test'] = '你已通过测验, 恭喜你!', - ['failed_test'] = '考试~r~失败~s~! 下次继续努力!', - ['theory_test'] = '理论驾驶考试', - ['road_test_car'] = '小型轿车驾考', - ['road_test_bike'] = '摩托载具驾考', - ['road_test_truck'] = '商业卡车驾考', - ['school_item'] = '$%s', - ['driving_school'] = '驾校', - ['press_open_menu'] = '键下 [E] 访问驾校', - ['driving_school_blip'] = '驾校', - ['driving_test_complete'] = '驾驶考试完成', - ['driving_too_fast'] = '驾驶载具速度过快, 注意限速: %s km/h!', - ['errors'] = '失误: ~r~%s~s~/~g~%s~s~', - ['you_damaged_veh'] = '载具出现受损!', - ['not_enough_money'] = '您暂无足够现金', +Locales["zh-cn"] = { + ["you_paid"] = "成功支付驾考学费:$%s", + ["go_next_point"] = "请小心驾驶前往下一考试点!", + ["in_town_speed"] = "请注意进入城区, 请减速! 注意限速: %s km/h", + ["next_point_speed"] = "请小心驾驶前往下一考试点! 注意限速: %s km/h", + ["stop_for_ped"] = "路过~r~人行横道时~s~, 请小心驾驶注意两边行人", + ["good_lets_cont"] = "Good, 继续.", + ["stop_look_left"] = "驾驶时应~r~时刻保持警惕~s~两边来往车辆. 注意限速: %s km/h", + ["good_turn_right"] = "做的好, 现在右转前往汇入城区主干道", + ["watch_traffic_lightson"] = "请时刻注意驾驶时的道路红绿灯!", + ["stop_for_passing"] = "停车! 有过往车辆时请注意避让", + ["hway_time"] = "现在正在汇入高速公路路段! 注意限速: %s km/h", + ["gratz_stay_alert"] = "完成驾考! 现在请返回驾校! 以后的驾驶中请勿忘记今日所学内容!", + ["passed_test"] = "你已通过测验, 恭喜你!", + ["failed_test"] = "考试~r~失败~s~! 下次继续努力!", + ["theory_test"] = "理论驾驶考试", + ["road_test_car"] = "小型轿车驾考", + ["road_test_bike"] = "摩托载具驾考", + ["road_test_truck"] = "商业卡车驾考", + ["school_item"] = "$%s", + ["driving_school"] = "驾校", + ["press_open_menu"] = "键下 [E] 访问驾校", + ["driving_school_blip"] = "驾校", + ["driving_test_complete"] = "驾驶考试完成", + ["driving_too_fast"] = "驾驶载具速度过快, 注意限速: %s km/h!", + ["errors"] = "失误: ~r~%s~s~/~g~%s~s~", + ["you_damaged_veh"] = "载具出现受损!", + ["not_enough_money"] = "您暂无足够现金", } diff --git a/server-data/resources/[esx_addons]/esx_dmvschool/localization/en_esx_dmvschool.sql b/server-data/resources/[esx_addons]/esx_dmvschool/localization/en_esx_dmvschool.sql new file mode 100644 index 000000000..26fae51d5 --- /dev/null +++ b/server-data/resources/[esx_addons]/esx_dmvschool/localization/en_esx_dmvschool.sql @@ -0,0 +1,6 @@ +INSERT INTO `licenses` (`type`, `label`) VALUES + ('dmv', 'Driving Permit'), + ('drive', 'Drivers License'), + ('drive_bike', 'Motorcycle License'), + ('drive_truck', 'Commercial Drivers License') +;