Commit Graph

49 Commits

Author SHA1 Message Date
Dione Batista bbe14d30d3 More Corrections
correction in the camera spawn getting stuck for not finding the player's coordinates
2020-03-26 18:57:53 -03:00
Dione Batista 220f21db35 Correction
Correction for Characters dont loading on login
2020-03-26 18:40:40 -03:00
RikoDEV 72c4555b55 Merge pull request #7 from rex2630/patch-1
Fix for disconnect
2020-03-25 13:09:46 +01:00
rex2630 66f751f8c2 Fix for disconnect 2020-03-25 13:08:14 +01:00
rex2630 5f43c69987 Fix for disconnect 2020-03-25 13:07:10 +01:00
RikoDEV c3a731155f Fix for English readme. 2020-03-25 10:15:33 +01:00
RikoDEV b49a476fc8 Fix for Polish readme. 2020-03-25 10:14:11 +01:00
RikoDEV 71a7f8bf54 Support for the new version of ESX, again... 2020-03-25 10:11:16 +01:00
RikoDEV eef971c08b The user_accounts table has been moved...
...to users in the latest es_extended update.
2020-03-07 11:17:14 +01:00
RikoDEV d90553cfa5 Add respawn fix to readme. 2020-02-26 17:10:20 +01:00
RikoDEV 4a8339b0f6 Update readme.md 2020-02-26 17:09:47 +01:00
RikoDEV e52ae32036 Delete README.md 2020-02-23 12:13:24 +01:00
RikoDEV b67530799f [IMPORTANT] Creating characters fix. 2020-02-23 12:09:09 +01:00
RikoDEV be07044b53 Creating characters fix. 2020-02-23 12:07:34 +01:00
RikoDEV feafbe61f8 Create FUNDING.yml 2020-02-22 16:41:11 +01:00
RikoDEV 06dd900e0f Update README.md 2020-02-22 16:39:09 +01:00
RikoDEV 0bab6a2604 Update readme.md 2020-02-22 16:38:18 +01:00
RikoDEV 366e16eaf4 Update README.md 2020-02-22 16:33:33 +01:00
RikoDEV 6d0abfc71f Update main.lua 2020-02-22 16:31:49 +01:00
RikoDEV 640a322853 Update main.lua 2020-02-22 16:30:32 +01:00
RikoDEV 083b545300 Update main.lua 2020-02-22 16:12:40 +01:00
RikoDEV eb2a274d70 We need the entire identifier, string.sub is unnecessary. 2020-02-22 15:58:37 +01:00
RikoDEV ecf073ef61 Fix issues with identifiers... 2020-02-22 15:54:12 +01:00
RikoDEV 8171f9f483 Update main.lua 2020-02-22 15:42:40 +01:00
RikoDEV c22733bb4c Update main.lua 2020-02-22 15:41:58 +01:00
RikoDEV acd4e30fea Fix GetPlayerIdentifiers 2020-02-22 15:41:38 +01:00
RikoDEV 2d63e61e32 Update and rename __resource.lua to fxmanifest.lua 2020-02-22 15:10:26 +01:00
RikoDEV f2612dc872 Add support for latest ESX (2/2) 2020-02-22 15:04:26 +01:00
RikoDEV 9c78cfa133 Update main.lua 2020-02-22 15:00:46 +01:00
RikoDEV e6bcd0560a Update and rename readME.md to readme.md 2020-02-22 14:58:56 +01:00
RikoDEV f21e2be417 Add support for latest ESX (1/2) 2020-02-22 14:57:31 +01:00
EbenSantuy 5ba5f685ab Update Changelog 2019-09-17 11:20:53 +00:00
EbenSantuy 460665d1d7 Fix Bug When Die Reconnect
when your die and you recconect you still alive and your item not removed
2019-09-17 11:17:44 +00:00
EbenSantuy 0eecd79463 Fixed Bug Recconect When Die
when your die and you recconect you still alive and your item not removed
2019-09-17 11:17:09 +00:00
EbenSantuy 50d1e143a3 Update Tutorial 2019-09-17 17:24:52 +07:00
EbenSantuy f7e53577b3 Update Tutorial 2019-09-17 17:24:51 +07:00
EbenSantuy 03ea592407 Update Tutorial 2019-09-17 17:24:45 +07:00
EbenSantuy 9f313e5e53 Merge pull request #2 from SW1FT/patch-1
typo
2019-08-18 02:27:21 +07:00
EbenSantuy 8766f27722 Update issue 1 2019-08-18 02:27:06 +07:00
SW1FT 006ec7802c typo
typo
2019-08-13 20:35:38 +01:00
EbenSantuy d10fd018bd Update readME.md 2019-08-13 22:23:46 +07:00
EbenSantuy 606e18f59e Update readME.md 2019-08-13 22:20:49 +07:00
EbenSantuy 6cc6f126e3 Update readME.md 2019-08-13 22:17:01 +07:00
EbenSantuy 2e4dbde564 Update the text :v 2019-08-13 22:16:08 +07:00
EbenSantuy 1fe1f52376 updated mysql-async
Updated mysql-async
2019-08-13 22:05:51 +07:00
EbenSantuy 440256a631 Update readME.txt 2019-08-13 22:00:13 +07:00
EbenSantuy 7faae48fb8 Update readME.txt 2019-07-22 00:17:09 +07:00
EbenSantuy 449302db62 Update readME.txt 2019-07-17 15:26:58 +07:00
EbenSantuy 5b591a94b5 This I made for people who cant configure the esx_kashacters and to fix all the issue ! thanks to KASH to make this nice Feature
Thanks You KASH (github.com/KASHZIN)Who The Original Develop This ESX_KASHACTERS RELEASE And To for the tutorial XxFri3ndlyxX (github.com/XxFri3ndlyxX)

this tutorial i made little bit use XxFri3ndlyxX tutorial

1.Step One [ essentialmode\client\main.lua ]

Delete Or Replace This !
--[[Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)

		if NetworkIsSessionStarted() then
			TriggerServerEvent('es:firstJoinProper')
			TriggerEvent('es:allowedToSpawn')
			return
		end
	end
end)]]--

2.Step Two [ es_extended [ LINE : 457 ] client/main.lua ]
This To Fix Cant Open Inventory When You Die And Get Revived

Change You Menu interactions to this !
``` ---Menu interactions
Citizen.CreateThread(function()
	while true do
		
		Citizen.Wait(0)

		if IsControlJustReleased(0, 289) and IsInputDisabled(0) and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
			ESX.ShowInventory()
		end

	end
end)```

3. Step Three 
To Get Your esx_kashacters work you need do this on your database

SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'owner'
And This
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'indentifier'
Credit @Xnubil

6. Step Six [Fix Datastore]
Duplicate Your esx_datastore or add This line on your esx_datastore server\main.lua

-- Fix was taken from this link --
-- https://forum.fivem.net/t/release-esx-kashacters-multi-character/251613/448?u=xxfri3ndlyxx --
AddEventHandler('esx:playerLoaded', function(source)

  local result = MySQL.Sync.fetchAll('SELECT * FROM datastore')

	for i=1, #result, 1 do
		local name   = result[i].name
		local label  = result[i].label
		local shared = result[i].shared

		local result2 = MySQL.Sync.fetchAll('SELECT * FROM datastore_data WHERE name = @name', {
			['@name'] = name
		})

		if shared == 0 then

			table.insert(DataStoresIndex, name)
			DataStores[name] = {}

			for j=1, #result2, 1 do
				local storeName  = result2[j].name
				local storeOwner = result2[j].owner
				local storeData  = (result2[j].data == nil and {} or json.decode(result2[j].data))
				local dataStore  = CreateDataStore(storeName, storeOwner, storeData)

				table.insert(DataStores[name], dataStore)
			end
		end
	end

	local _source = source
	local xPlayer = ESX.GetPlayerFromId(_source)
  	local dataStores = {}
  
	for i=1, #DataStoresIndex, 1 do
		local name      = DataStoresIndex[i]
		local dataStore = GetDataStore(name, xPlayer.identifier)

		if dataStore == nil then
			MySQL.Async.execute('INSERT INTO datastore_data (name, owner, data) VALUES (@name, @owner, @data)',
			{
				['@name']  = name,
				['@owner'] = xPlayer.identifier,
				['@data']  = '{}'
			})

			dataStore = CreateDataStore(name, xPlayer.identifier, {})
			table.insert(DataStores[name], dataStore)
		end

		table.insert(dataStores, dataStore)
	end

	xPlayer.set('dataStores', dataStores)
end)

Download Link : https://github.com/XxFri3ndlyxX/esx_datastore
Credits : https://github.com/XxFri3ndlyxX

5. Step Five [ Fix Ambulance ]
This To Fix Die Tele And When Your Get Revived You Cant Open any Menu only F2

Download My File the esx_ambulancejob (or download the lastest version esx_ambulancejob :v)

6. Step Six [ Fix your esx_kashacters identifier ]
Download My mysql-async And start on your server.cfg

7. Step Seven [ Fix Your Identifier And Spawn] 
Download My esx_kashacters Modified And start on your server.cfg
Thats All Identifier [esx_kashacters\server\main.lua] maybe thats all
you need in Roleplay Server if you wan to change just change it 

===--------------------------------------------------------------------===

Okey Thats All Make My esx_kashacters work properly if you wanna ask
My Discord : Blue.#5108

Thank you Again to KASH And XxFri3ndlyxX ! :)
ENJOY YOUR ESX_KASHACTERS
2019-07-17 15:26:07 +07:00