housing update
This commit is contained in:
		
							parent
							
								
									7dfe792351
								
							
						
					
					
						commit
						630007bbdc
					
				
					 17 changed files with 28 additions and 25 deletions
				
			
		|  | @ -68,6 +68,11 @@ if Config['Core']:upper() == 'ESX' then | |||
|     function GetItemCount(source, item) | ||||
|         local xPlayer = GETPFI(source) | ||||
|  | ||||
|         if xPlayer.getInventoryItem(item) == nil then | ||||
|             print("^1PROBLEM!^7 The ^3" ..item.. "^7 item is not created.") | ||||
|             return 0 | ||||
|         end | ||||
|  | ||||
|         if _esx_ == 'new' then | ||||
|             return xPlayer.getInventoryItem(item).count | ||||
|         else | ||||
|  | @ -151,7 +156,7 @@ elseif Config['Core']:upper() == 'QBCORE' then | |||
|     RESCB = Core.Functions.CreateCallback | ||||
|     GETPFI = Core.Functions.GetPlayer | ||||
|     RUI = Core.Functions.CreateUseableItem | ||||
|     SetJobEvent = 'QBCore:Server:SetGang' | ||||
|     SetJobEvent = 'QBCore:Server:SetJob' | ||||
|     onPlayerDeath = GetResourceState("brutal_ambulancejob") == "started" and 'onPlayerDeath' or 'hospital:server:SetDeathStatus' | ||||
|     SQLData = { | ||||
|         players = 'players', | ||||
|  | @ -232,7 +237,7 @@ elseif Config['Core']:upper() == 'QBCORE' then | |||
|  | ||||
|     function GetPlayerJob(source) | ||||
|         local xPlayer = GETPFI(source) | ||||
|         return xPlayer.PlayerData.gang.name | ||||
|         return xPlayer.PlayerData.job.name | ||||
|     end | ||||
|  | ||||
|     function CreateCoreJob(name, label, grades) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nordi98
						Nordi98