Commit Graph

6209 Commits

Author SHA1 Message Date
RikoDEV 134d24aea1 Remove keys table 2019-07-20 14:32:40 +02:00
Samuel ef5c9e19b4 Merge pull request #278 from DRP-Test/master
Renamed variables to match xPlayer variables
2019-07-20 14:24:54 +02:00
Samuel 5c1416e4bf Merge pull request #274 from izio38/patch-1
Fixed wrong notification target in give weapon code
2019-07-20 14:22:22 +02:00
ElPumpo 9fa0c12e02 Replaced MaxPlayers with GetActivePlayers for all babies 👶 2019-07-20 13:09:42 +02: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
ElPumpo d0ac5c8da6 Update README.md 2019-07-16 11:08:12 +02:00
ElPumpo dd436587ae Performance improvments, enforce 2 space indent, vector3 coords 2019-07-16 11:07:28 +02:00
ElPumpo 8a6f3d9e2f Fixed #331 2019-07-06 14:00:27 +02:00
ElPumpo 4778307d7f Fixed #315, use loading prompt instead of drawing text 2019-07-06 13:57:13 +02:00
Samuel 13da795b09 Merge pull request #49 from KandaSoranyan/patch-3
Missing French translations
2019-06-25 22:28:53 +02:00
ElPumpo 01787edb2f Minor cleanup 2019-06-16 13:07:33 +02:00
depp 2c5f4e1ba6 Update main.lua 2019-06-14 17:20:59 +07:00
ElPumpo 954572c934 Minor changes, removed keys table 2019-06-08 22:24:20 +02:00
ElPumpo 77a7080e38 Implemented unregisterStatus and fixed restarting script midgame 2019-06-08 13:11:28 +02:00
ElPumpo b7c2e13578 Minor changes, Swedish locale 2019-06-05 21:47:45 +02:00
JaroSound a4f28663c4 Items cannot be local?
https://github.com/ESX-Org/esx_addoninventory/issues/15
2019-06-04 18:22:24 +02:00
Samuel d925b7169a Merge pull request #311 from KandaSoranyan/patch-3
missing translation
2019-06-03 06:37:38 +02:00
ElPumpo 3203d762da Minor cleanup 2019-06-01 14:23:00 +02:00
ElPumpo 067f0b9145 Minor cleanup 2019-06-01 14:15:27 +02:00
ElPumpo 58a5e8f046 Added missing mysql keys 2019-06-01 14:07:08 +02:00
ElPumpo 687c636595 Added missing indexes 2019-05-31 23:27:35 +02:00
ElPumpo 8d47719dbf One more index 2019-05-31 23:22:14 +02:00
ElPumpo 129223976a Added missing mysql indexes 2019-05-31 23:18:39 +02:00
ElPumpo 9f21efed2d Minor cleanup and added missing sql index 2019-05-31 23:09:40 +02:00
ElPumpo 7cfebdd843 Minor cleanup 2019-05-31 22:40:10 +02:00
KandaSoranyan e762d6e028 missing translation 2019-05-31 13:23:55 +02:00
KandaSoranyan 8be80eda4e missing translation 2019-05-31 13:16:41 +02:00
KandaSoranyan 701b438433 missing translations 2019-05-31 13:12:53 +02:00
ElPumpo 2b35411284 Minor cleanup 2019-05-31 13:04:59 +02:00
ElPumpo 1d2d7fbaa9 Config cleanup 2019-05-31 12:58:07 +02:00
ElPumpo 9f600e3787 Minor cleanup 2019-05-31 12:53:53 +02:00
ElPumpo bb1c90f50d Unused text native 2019-05-31 12:41:20 +02:00
ElPumpo 0a347eda2a Unused text native 2019-05-31 12:40:18 +02:00
ElPumpo 70b56fb7c4 Remove unused text native 2019-05-31 12:38:07 +02:00
ElPumpo 06839cb101 Updated native name 2019-05-31 12:37:48 +02:00
ElPumpo 967cde347e Fix spawned vehicles not unloading from memory, closes #142
Co-Authored-By: Alex Garcio <redalex@users.noreply.github.com>
2019-05-31 12:35:09 +02:00
Samuel fb1c8a0bf1 Merge pull request #264 from jquiaios/master
Fix mislocated break in player accounts' loop
2019-05-23 13:49:54 +02:00
ElPumpo 3ea931b940 Resized base64 image 2019-05-20 23:13:41 +02:00
ElPumpo a18fa50463 Proper hud natives 2019-05-20 23:06:03 +02:00
ElPumpo 15489ec3c7 Proper hud natives 2019-05-20 23:05:38 +02:00
ElPumpo 4bbd1d9521 Proper hud natives 2019-05-20 23:05:10 +02:00
ElPumpo 19d6e032af Proper hud natives 2019-05-20 23:04:48 +02:00
ElPumpo f408e3a56a Proper hud natives 2019-05-20 23:04:04 +02:00
ElPumpo 3705e6b654 Reencode base64 phone logo, minor indent changes 2019-05-20 23:02:21 +02:00
BackrndSource 4220c1471a Add Spanish Translate (#81)
* Create es.lua

* Update __resource.lua

* Create en_esx_drugs.sql

* Create es_esx_drugs.sql
2019-05-20 09:19:50 +02:00
izio38 1691528992 typo 2019-05-18 07:02:13 +02:00
izio38 5d3bfc59a6 probably fix global voices 2019-05-17 19:59:25 +02:00
DanishRP 36bc96cdfe Changed Variables
Changed Variables for self.removeAccountMoney, did not match same scheme as other functions in same function
2019-05-11 01:18:59 +02:00
izio38 83e517330f fix( onesync global voices ) 2019-05-06 14:42:42 +02:00