Commit Graph

4297 Commits

Author SHA1 Message Date
EbenSantuy f7e53577b3 Update Tutorial 2019-09-17 17:24:51 +07:00
EbenSantuy 03ea592407 Update Tutorial 2019-09-17 17:24:45 +07:00
ElPumpo cf39f7c7d7 Fixed invisable bug once and for all, closes #13 2019-09-08 13:22:09 +02:00
JHyeok 9e80de864f Add Korean Language 2019-09-03 00:45:37 +09:00
JHyeok 01d2768df9 Added Korean Language 2019-09-01 16:23:48 +09:00
nearbyplayer 9be9b07e75 Update README.md
Add Warning
2019-08-29 17:25:04 -04:00
nearbyplayer a051c08a0a Merge pull request #9 from Hunt3red/patch-1
Fixes #15 #14 and #5
2019-08-29 17:19:34 -04:00
Samuel f2b885f38a Merge pull request #16 from JaroSound/patch-1
Items variable cannot be local
2019-08-27 21:35:10 +02: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
ElPumpo 5159e892fe Removed unneeded backticks 2019-08-10 12:43:09 +02:00
David 3177493519 Optimized the code a bit 2019-08-07 15:22:45 +02:00
Damyan e31d51b157 Update README.md 2019-08-06 12:24:24 +03:00
ElPumpo 48cf1d56be removed old ESX.TableContainsValue 2019-08-04 17:54:46 +02:00
ElPumpo adfb9f6522 Fixed xplayer typo 2019-08-04 17:54:18 +02:00
Viktor 2e39e3d01a Fixed loadout flaw when confiscated while dead 2019-08-04 16:47:33 +02:00
ElPumpo 06d3ee286f Replaced for i= loops with ipairs 2019-08-04 14:55:04 +02:00
ElPumpo a07b4a7e9c Very final commit v1.0.0 2019-08-03 10:42:12 +02:00
ElPumpo 8bd77249d5 Removed keys table, minor improvements, final commit v1.0.0 2019-08-03 10:41:30 +02:00
ElPumpo ee007077a9 Enforced 2 space locale indent 2019-08-03 10:28:05 +02:00
ElPumpo 44c05b8fae Added fuel to veh properties and ensure decimal value 2019-08-02 11:33:10 +02:00
MajorMarcin 9557ff1a4f add pl translation and update repo links in README 2019-07-31 11:55:16 +02:00
ElPumpo e850da085e See description for changes
Fixed the "health" problems on vehicles. It seems like you shouldn't use the `GetEntityHealth()` on vehicles at all since it is linked to the `GetVehicleBodyHealth()` native.
But if you use the `SetEntityHealth()` native on an vehicle it breaks the link. Instead there's both body health and engine health that ESX has missed out on.
Since the new used `GetVehicle***` natives return decimal values we round them to 1 decmial.
Also dirt levels are now rounded to one decimal since they make 0 visable difference.
2019-07-30 20:40:39 +02:00
ElPumpo 633268330c Fixed handcuffing, closes #314 and #316 2019-07-28 20:56:39 +02:00
ElPumpo 0cafd722a9 Seperate code to improve performance 2019-07-27 16:49:14 +02:00
Samuel 88b39324ad Merge pull request #78 from memor1esly/master
Fixed society UI invalid base64 image
2019-07-25 12:26:57 +02:00
ElPumpo 8bb102c843 Performance improvements, removed keys table 2019-07-25 12:24:02 +02:00
EbenSantuy 7faae48fb8 Update readME.txt 2019-07-22 00:17:09 +07:00
Samuel 2d83aa83fb Merge pull request #22 from RikoDEV/patch-1
Remove keys table
2019-07-20 20:00:19 +02:00
Lerk b3d26ae02f hide "press e to modify" hint when in the menu 2019-07-20 14:44:55 +02:00
ElPumpo 63bdd6daef Removed Show Dot Above Player 2019-07-20 14:34:13 +02:00
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