rOckzinhoMTA Posted March 8, 2019 Posted March 8, 2019 CLIENT-SIDE function Abrir_Flecca ( ) if PainelDX == false then showCursor ( true ) playSoundFrontEnd ( 43 ) PainelDX = true addEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "AbrirFleeca", true) addEventHandler ( "AbrirFleeca", root, Abrir_Flecca ) function Fechar_Flecca ( ) if PainelDX == true then showCursor ( false ) playSoundFrontEnd ( 40 ) PainelDX = false removeEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "FecharFleeca", true) addEventHandler ( "FecharFleeca", root, Fechar_Flecca ) SERVER-SIDE function Abrir_Painel ( marker, md ) if md then if not isPedInVehicle ( source ) then if marker == Painel_Marker then triggerClientEvent ( source, "AbrirFleeca", root ) end end end end addEventHandler ( "onPlayerMarkerHit", getRootElement(), Abrir_Painel ) function Fechar_Painel ( marker, md ) if md then if marker == Painel_Marker then triggerClientEvent ( source, "FecharFleeca", root ) end end end addEventHandler ( "onPlayerMarkerLeave", getRootElement(), Fechar_Painel ) FOTO DO ERRO:https://prnt.sc/mv1he0
Moderators Lord Henry Posted March 8, 2019 Moderators Posted March 8, 2019 Utilize o botão de <> do fórum para postar o código. Regras do fórum: 1 Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
rOckzinhoMTA Posted March 8, 2019 Author Posted March 8, 2019 CLIENT-SIDE function Abrir_Flecca ( ) if PainelDX == false then showCursor ( true ) playSoundFrontEnd ( 43 ) PainelDX = true addEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "AbrirFleeca", true) addEventHandler ( "AbrirFleeca", root, Abrir_Flecca ) function Fechar_Flecca ( ) if PainelDX == true then showCursor ( false ) playSoundFrontEnd ( 40 ) PainelDX = false removeEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "FecharFleeca", true) addEventHandler ( "FecharFleeca", root, Fechar_Flecca ) SERVER-SIDE function Abrir_Painel ( marker, md ) if md then if not isPedInVehicle ( source ) then if marker == Painel_Marker then triggerClientEvent ( source, "AbrirFleeca", root ) end end end end addEventHandler ( "onPlayerMarkerHit", getRootElement(), Abrir_Painel ) function Fechar_Painel ( marker, md ) if md then if marker == Painel_Marker then triggerClientEvent ( source, "FecharFleeca", root ) end end end addEventHandler ( "onPlayerMarkerLeave", getRootElement(), Fechar_Painel )
main Posted March 8, 2019 Posted March 8, 2019 14 minutes ago, rOckzinhoMTA said: CLIENT-SIDE function Abrir_Flecca ( ) if PainelDX == false then showCursor ( true ) playSoundFrontEnd ( 43 ) PainelDX = true addEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "AbrirFleeca", true) addEventHandler ( "AbrirFleeca", root, Abrir_Flecca ) function Fechar_Flecca ( ) if PainelDX == true then showCursor ( false ) playSoundFrontEnd ( 40 ) PainelDX = false removeEventHandler ( "onClientRender", getRootElement(), Painel_DX ) end end addEvent ( "FecharFleeca", true) addEventHandler ( "FecharFleeca", root, Fechar_Flecca ) SERVER-SIDE function Abrir_Painel ( marker, md ) if md then if not isPedInVehicle ( source ) then if marker == Painel_Marker then triggerClientEvent ( source, "AbrirFleeca", root ) end end end end addEventHandler ( "onPlayerMarkerHit", getRootElement(), Abrir_Painel ) function Fechar_Painel ( marker, md ) if md then if marker == Painel_Marker then triggerClientEvent ( source, "FecharFleeca", root ) end end end addEventHandler ( "onPlayerMarkerLeave", getRootElement(), Fechar_Painel ) Talvez esse tópico te ajude:
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