Whenever I go to do a dx panel this error appears ... What can I do to correct?
"ERROR: Server triggered clientside event "eventoabrir", but event is not added clientside"
-------------------CLIENT--------------------------
function abrir (_,state)
if painel == false then
showCursor(true)
addEventHandler("onClientRender", root, Pdx)
painel = true
else
showCursor(false)
removeEventHandler("onClientRender", root, Pdx)
painel = false
end
end
addEvent("abrir", true)
addEventHandler("abrir", root , abrir)
------------------SERVER--------------------------
local abrir = "painel"
function showPanellr(thePlayer)
triggerClientEvent(root, "abrir", thePlayer)
end
addEventHandler("onMarkerHit", mrkInicio, showPanellr)