I only worked in client.lua
and this is my current code
Looks good to me, although here:
It will wait 5 seconds before the variable cooldown goes down by one. I don’t know if you meant for that to happen or not.
yes that’s right
if I delete or increase the ms this does not give me the error anymore
Citizen.Wait(0)
if vRP.isInComa({}) then
cmc_drawTxt("~r~Battiti~w~ al ~y~secondo~w~: ~w~"..cooldown,4,1,0.5,0.8,1.0,255,255,255,255)
end
@zee
Did not you find anything?
nvm, i forgot that it’s only when sending something to server, which is weird.
@fauconjona do you know?
Why did you tag me?
instead of baseevents I did that script to start the cooldown but now I get that error and I tagged you to see if you can understand how it’s done … sorry if it has bothered you
Ok, the next time add some courtesy and more informations about the issue, instead of just ‘do you know?’.
If I understand your problem, there’s a problem here:
if vRP.isInComa({}) then
cmc_drawTxt("~r~Battiti~w~ al ~y~secondo~w~: ~w~"..cooldown,4,1,0.5,0.8,1.0,255,255,255,255)
end
It’s maybe something about cooldown
, it’s a number
instead of a string
. You can try with tostring(cooldown)
I don’t know how vRP works, so I can’t help a lot if the issue is about vRP.isInComa({})
if you remember the cooldown did not start with baseevents: onPlayerKilled and I created this thread (message 31/37), it works fine but it gives me this “error”: https://prnt.sc/mpf8wf
Ok, thanks all guys i fixed him