mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
34a9f1b0d5
Supports many languages such as French, English and Polish (used Google Translate) Also fixed a typo in the readme and added instructions on how to change the language. Sorry I had to repush again due to my last repository being broke.
1.6 KiB
1.6 KiB
Podziękowania dla KASH oraz XxFri3ndlyxX.
Jeśli aktualizujesz ESX, pamiętaj o aktualizacji pozostałych skryptów!
Wymagane zmiany:
- es_extended: (
es_extended/client/main.lua)
Zamień podany kod:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if NetworkIsPlayerActive(PlayerId()) then
TriggerServerEvent('esx:onPlayerJoined')
break
end
end
end)
na:
RegisterNetEvent('esx:kashloaded')
AddEventHandler('esx:kashloaded', function()
if isFirstSpawn then
TriggerServerEvent('esx:onPlayerJoined')
end
end)
- es_extended: (
es_extended/server/main.lua)
Zamień podany kod:
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
if string.match(v, 'license:') then
identifier = string.sub(v, 9)
break
end
end
na:
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
if string.match(v, 'license:') then
identifier = v
break
end
end
Przeczytaj uważnie...
Musisz zwiększyć limit znaków w tabeli
usersdla kolumnyidentifierdo 48.
Nie używaj essentialsmode, mapmanager oraz spawnmanager.
Uwaga! Musisz nazwać skrypt esx_kashacter, aby wszystko działało poprawnie.
Jak to działa?
Ten skrypt manipuluje ładowaniem postaci przez ESX. Kiedy więc wybierasz swoją postać, skrypt zmienia twoją licencje rockstar, która jest normalnie zapisywana jako license: na Char:, co zapobiega ładowaniu przez ESX innej postaci, ponieważ szuka on dokładnej licencji.
Obsługa wielu języków
Po prostu zmień locales/en.js w html/ui.html (linia 10)