joao2235 Posted September 14, 2019 Share Posted September 14, 2019 Tentei da seguinte maneira: function open (_,state) if getElementType() == "vehicle" then if painelF5 == false then showCursor(true) addEventHandler("onClientRender", root, painelF5Dx) painelF5 = true showCursor(true) else showCursor(false) removeEventHandler("onClientRender", root, painelF5Dx) painelF5 = false showCursor(false) end end end addEvent("painel_f5", true) addEventHandler("painel_f5", root , open) Sem sucesso... O que será que pode ser ? Link to comment
DNL291 Posted September 14, 2019 Share Posted September 14, 2019 if getPedOccupiedVehicle(localPlayer) then -- código end Coloque essa verificação. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now