Skip to content

TerbSEC/HealthbarUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Healthbar-UI

HealthBar UI - vRP and ESX

Screenshot of version 1.1: https://i.gyazo.com/251d99f001355e3db5f1da9399f3f5ab.png AND https://i.gyazo.com/b243fc6b59729578498624aac4d6215a.png :) The BLUE bar is Armor.
Screenshot of version 1.0: https://i.gyazo.com/d2af115e05ff52a5def8dde17767333a.png


Installation

  • Download the resource from the buttom above
  • Drag the resource into your Resources folder
  • Add start “resource name” in your Server.cfg
  • Now you are good to go <3

ESX SETUP

  • Requirements - ESX Framework and ESX_Status
  • Please go into esx_status/client/main.lua
RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
  for i=1, #Status, 1 do
  	for j=1, #status, 1 do
  		if Status[i].name == status[j].name then
  			Status[i].set(status[j].val)
  		end
  	end
  end

  Citizen.CreateThread(function()
  	while true do
  		for i=1, #Status, 1 do
  			Status[i].onTick()
  		end

  		SendNUIMessage({
  			update = true,
  			status = GetStatusData()
  		})

  		TriggerEvent('esx_status:onTick', GetStatusData(true))
  		Citizen.Wait(Config.TickTime)
  	end
  end)
end)

And Replace it with this

RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
  for i=1, #Status, 1 do
  	for j=1, #status, 1 do
  		if Status[i].name == status[j].name then
  			Status[i].set(status[j].val)
  		end
  	end
  end

  Citizen.CreateThread(function()
  	while true do
  		for i=1, #Status, 1 do
  			Status[i].onTick()
  		end

  		SendNUIMessage({
  			update = true,
  			status = GetStatusData()
  		})

  		TriggerEvent('ESX_HealthBAR-UI:updateStatus', GetStatusData(true))
  		Citizen.Wait(Config.TickTime)
  	end
  end)
end)

Now just start the HealthbarUI in the Server.cfg Done;D Easy Right? :P


VRP SETUP

  • Requirement - VRP Framework
  • Plug and Play xd

FiveM


Credits


About

HealthBar UI - vRP and ESX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published