From be07044b53e5bc442e3317aeda1510123ca46f18 Mon Sep 17 00:00:00 2001 From: RikoDEV <18230443+RikoDEV@users.noreply.github.com> Date: Sun, 23 Feb 2020 12:07:34 +0100 Subject: [PATCH] Creating characters fix. --- readme.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/readme.md b/readme.md index b1981f6c..9532184b 100644 --- a/readme.md +++ b/readme.md @@ -11,6 +11,34 @@ RegisterNetEvent('esx:kashloaded') AddEventHandler('esx:kashloaded', function() ``` +* es_extended: (`es_extended/server/main.lua`) + +### Change this code in `onPlayerJoined(playerId)` function: + +```lua + for k,v in ipairs(GetPlayerIdentifiers(playerId)) do + if string.match(v, 'license:') then + identifier = string.sub(v, 9) + break + end + end +``` + +### to: + + +``` + for k,v in ipairs(GetPlayerIdentifiers(playerId)) do + if string.match(v, 'license:') then + identifier = v + break + end + end +``` + +# WARNING! +> You **MUST** incerase characters limit in `users` table for row `identifier` to **48**. + > *Pay ATTENTION: You have to call the resource 'esx_kashacters' in order for the javascript to work!!!** ## How it works