[RELEASE] countdown HUD

This is my first script release

video
DownLoad: link

How to use:

TriggerEvent('lorraxs_progress', time-in-milsec, function(isBusy)
 if not isBusy then 
   your-code
 end
end)

Example with esx_extraitems (oxygen_mask):

RegisterNetEvent('esx_extraitems:oxygen_mask')
AddEventHandler('esx_extraitems:oxygen_mask', function()
	TriggerEvent('lorraxs_progress', 200000, function(isBusy) 
	if not isBusy then 
		local playerPed  = GetPlayerPed(-1)
		local coords     = GetEntityCoords(playerPed)
		local boneIndex  = GetPedBoneIndex(playerPed, 12844)
		local boneIndex2 = GetPedBoneIndex(playerPed, 24818)
		
		ESX.Game.SpawnObject('p_s_scuba_mask_s', {
			x = coords.x,
			y = coords.y,
			z = coords.z - 3
		}, function(object)
			ESX.Game.SpawnObject('p_s_scuba_tank_s', {
				x = coords.x,
				y = coords.y,
				z = coords.z - 3
			}, function(object2)
				AttachEntityToEntity(object2, playerPed, boneIndex2, -0.30, -0.22, 0.0, 0.0, 90.0, 180.0, true, true, false, true, 1, true)
				AttachEntityToEntity(object, playerPed, boneIndex, 0.0, 0.0, 0.0, 0.0, 90.0, 180.0, true, true, false, true, 1, true)
				SetPedDiesInWater(playerPed, false)				
				Citizen.Wait(200000)  --Because we trigger hud with 200000ms
				SetPedDiesInWater(playerPed, true)
				DeleteObject(object)
				DeleteObject(object2)
				ClearPedSecondaryTask(playerPed)
				end)
			end)
		end
	end)
end)
7 Likes

Have you made that Inventory by ur self? Looks amazing, same with this countdown script.

no. It’s not mine

what is the left menu called?

why does this have the ESX tag if it’s not dependent on ESX at all? pretty stupid to demand framework dependence just because of a notification function

2 Likes


Where can i download

@Jeay @FlutterMake
Looks like a modified version of RadialMenu, heres a link :grinning:

exactly, i remade from RadialMenu and i dont have permission to release it :frowning:

1 Like

How can i get the basic oxygen mask script ?

How can i make this non-esx?

it’s standalone

lmao some people

hi mate @tringuyenk19 this script looks great i am no dev can you explain what do i do with those codes? i use esx is that for a server file?
edit made it work :slight_smile: this will be usefull for a radiation zone ill plan on doing

1 Like

Is it possible to get him back to 100% when supplemented