[RELEASE] ESX/VRP Job Counter Display V2

Let me know when its out :smiley:

same, i would like an update

pega el codigo

Hello team, I have a small problem and it is the following, I hope you can help me.

I can’t find a way to adapt it to the native DunkoVRP
if anyone has any ideas or knows how to do it I appreciate it.

regards

I have this error and the script dont show me the jobs online :frowning:
SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:124: attempt to perform arithmetic on a nil value (local ‘msec’)

ya lograste corregir tu error?

No bro sigue apareciendo eso y no me muestra los que estan en servicio

ok esta es la solucion:

server.lua

local Proxy = module(“vrp”, “lib/Proxy”)

vRP = Proxy.getInterface(“vRP”)

Citizen.CreateThread(function()
while true do

	local polis = vRP.getUsersByPermission({"police.service"})
	local medic = vRP.getUsersByPermission({"emergency.service"})
	local taxis = vRP.getUsersByPermission({"uber.service"})
	local mechs = vRP.getUsersByPermission({"repair.service"})

	TriggerClientEvent("trabajos:update", -1, #polis, #medic, #taxis, #mechs)

	 Citizen.Wait(1)
end

end)

1 Like

Alguna solucion?
https://gyazo.com/02bc780f944c322dbc2c021435d72b99
Uso vRPEX

Where can I edit the position?

Hello, I don’t work in VRP, and much less vRPEX, the VRP version was converted by someone else from my esx, I don’t know what solution this can have

Hello friend, try to write in English, this is an English forum and everything should be commented in English, respect your post, you have to edit it in the ui.css

i have put it in but it says couldn’t load resource

Tengo exactamente el mismo error, le has podido dar solución??
un saludo!! gracias

Hola buenas, como podria hacer que cuando haya mas de un cierto numero de policias deje de actualizarse me explico si hay mas de 3 polis que en vez de poner el numero que le corresponda ponga +3

Hello, good, how could I make that when there are more than a certain number of police officers, they stop updating? I explain if there are more than 3 cops that instead of putting the corresponding number, put +3

2 Likes

Buenas a alguien mas le ha pasado que no le cuenta ni los jugadores ni el trabajo? No he tocado nada del codigo
Hi, does anyone know why I can’t count people or jobs?
contador

Hola espero alguien me pueda ayudar porque tengo este problema, no se si a alguien mas le paso:

hola, ante todo agradezco por el script pero tengo un problema ya que no cuenta el mechanicjob pero si los demas jobs, no se cual puede ser el problema ya que mechanicjob no me da ningun error solo la carpeta onlinejobs

some idea what be a mistake?

Hello, sorry for taking a long time to answer, but I had a broken PC.

have you changed the folder name?