2020-02-26 17:09:47 +01:00
2020-02-22 16:41:11 +01:00
2020-02-23 12:13:24 +01:00
2020-02-26 17:09:47 +01:00

Thanks to KASH and XxFri3ndlyxX

Required changes:

  • es_extended: (es_extended/client/main.lua)

Replace AddEventHandler('playerSpawned', function() (35) with:

RegisterNetEvent('esx:kashloaded')
AddEventHandler('esx:kashloaded', function()
  • es_extended: (es_extended/server/main.lua)

Change this code in onPlayerJoined(playerId) function:

	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

Using kashacters without esx_ambulancejob (respawn fix)

Remove exports.spawnmanager:setAutoSpawn(false) from client/main.lua.

WARNING!

You MUST incerase the character limit in the 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

What this script does it manipulates ESX for loading characters So when you are choosing your character it changes your Rockstar license which is normally license: to Char: this prevents ESX from loading another character because it is looking for you exact license. So when you choose your character it will change it from Char: to your normal Rockstar license (license:). When creating a new character it will spawn you without an exact license which creates a new database entry for your license.

Credits

ESX Framework and KASH AND Onno204 for creating the resource. You can do whatever the f with it what you want but it is nice to give the main man credits ;)

S
Description
Official Repo For core resources for esx-legacy
Readme 49 MiB
Languages
JavaScript 62.3%
Lua 34.8%
TypeScript 1.2%
HTML 0.8%
CSS 0.7%
Other 0.2%