mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +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.
71 lines
1.6 KiB
Markdown
71 lines
1.6 KiB
Markdown
# 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:
|
|
|
|
```lua
|
|
Citizen.CreateThread(function()
|
|
while true do
|
|
Citizen.Wait(0)
|
|
|
|
if NetworkIsPlayerActive(PlayerId()) then
|
|
TriggerServerEvent('esx:onPlayerJoined')
|
|
break
|
|
end
|
|
end
|
|
end)
|
|
```
|
|
|
|
### na:
|
|
|
|
```lua
|
|
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:
|
|
|
|
```lua
|
|
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
|
|
if string.match(v, 'license:') then
|
|
identifier = string.sub(v, 9)
|
|
break
|
|
end
|
|
end
|
|
```
|
|
|
|
### na:
|
|
|
|
|
|
```lua
|
|
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 `users`dla kolumny `identifier` do **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) |