[esx] hours system [free]

===============

[DOWNLOAD]

[VIEW]

===============
SPANISH

SISTEMA DE HORAS QUE TE PERMITE BLOQUEAR OPCIONES DEPENDIENDO DE LAS HORAS JUGADAS DEL JUGADOR

MUY FACIL DE INTEGRAR CON CUALQUIER SCRIPT

USAR ESTA LINEA PARA INTEGRAR CON CUALQUIER SCRIPT

	"local horas = ESX.GetPlayerData().horas"

EJEMPLO MOSTRADO EN EL VIDEO

    "if IsControlJustReleased(0, 38) then
			local horas = ESX.GetPlayerData().horas 
			if horas > 10 then --- AQUI TU CONFIGURAR EL NUMERO DE HORAS QUE QUIERES ---
			if currentAction == 'shop_menu' then
				OpenShopMenu()
			end
		else
			ESX.ShowNotification('No tienes las horas suficientes')
		end
			currentAction = nil
		end"

ENGLISH

HOURS SYSTEM THAT ALLOWS YOU TO LOCK OPTIONS DEPENDING ON THE HOURS PLAYED BY THE PLAYER

VERY EASY TO INTEGRATE WITH ANY SCRIPT

USE THIS LINE TO INTEGRATE WITH ANY SCRIPT

"local horas = ESX.GetPlayerData().horas"

EXAMPLE SHOWN IN THE VIDEO

 "if IsControlJustReleased(0, 38) then
			local horas = ESX.GetPlayerData().horas 
			if horas > 10 then --- AQUI TU CONFIGURAR EL NUMERO DE HORAS QUE QUIERES ---
			if currentAction == 'shop_menu' then
				OpenShopMenu()
			end
		else
			ESX.ShowNotification('No tienes las horas suficientes')
		end
			currentAction = nil
		end"
4 Likes

English please

This one seems similar to this one Prefech_playTime

1 Like

I didn’t know about the existence of this script, but my script is completely created by me.

This script is not very optimized to be honest.

Citizen.CreateThread(function()

while true do
    Wait(1000)
    ESX.TriggerServerCallback("pekehoras:obtenerhoras", function(horas)
        
        ESX.SetPlayerData("horas", horas)


    end)
end

end)

Que cosa más cutre

1 Like

Que grande tio :heart_eyes:

1 Like