gghvcffcv Posted March 9, 2014 Share Posted March 9, 2014 It doesn't works i don't know Why Client: addEventHandler("onClientMarkerHit", resourceRoot, function( hitElement ) if ( hitElement == localPlayer ) then panel = guiCreateWindow(591, 88, 226, 599, "Trucker", false) guiWindowSetSizable(panel, false) viaje1 = guiCreateButton(10, 33, 208, 47, "Los Santos 8000 $", false, panel) viaje2 = guiCreateButton(10, 90, 208, 47, "Las Venturas 8000 $", false, panel) viaje3 = guiCreateButton(10, 147, 208, 47, "San Fierro 5000 $", false, panel) viaje4 = guiCreateButton(10, 204, 208, 47, "WhetStone 10000 $", false, panel) showCursor ( true ) addEventHandler ( "onClientGUICLick", viaje1, viaje11, false ) addEventHandler ( "onClientGUICLick", viaje2, viaje22, false ) addEventHandler ( "onClientGUICLick", viaje3, viaje33, false ) addEventHandler ( "onClientGUICLick", viaje4, viaje44, false ) end end ) ------------------------------------------------------------------------------------------------------------ function viaje11 ( hitElement ) showCursor ( false ) guiSetVisible (panel, not guiGetVisible ( panel ) ) triggerServerEvent ( "onGreetinA", localPlayer ) end addEventHandler ("onClientGUIClick", viaje11, true ) ------------------------------------------------------------------------------------------------------------ function viaje22 ( commandName ) triggerServerEvent ( "onGreetinB", localPlayer ) end addEventHandler ("onClientGUIClick", viaje22, true ) ------------------------------------------------------------------------------------------------------------ function viaje33 ( commandName ) triggerServerEvent ( "onGreetinC", localPlayer ) end addEventHandler ("onClientGUIClick", viaje33, true ) ------------------------------------------------------------------------------------------------------------ function viaje44 ( commandName ) triggerServerEvent ( "onGreetinD", localPlayer ) end addEventHandler ("onClientGUIClick", viaje44, true ) Link to comment
Anubhav Posted March 9, 2014 Share Posted March 9, 2014 Lol. its onClientGUIClick not onClientGUICLick addEventHandler("onClientMarkerHit", resourceRoot, function( hitElement ) if ( hitElement == localPlayer ) then panel = guiCreateWindow(591, 88, 226, 599, "Trucker", false) guiWindowSetSizable(panel, false) viaje1 = guiCreateButton(10, 33, 208, 47, "Los Santos 8000 $", false, panel) viaje2 = guiCreateButton(10, 90, 208, 47, "Las Venturas 8000 $", false, panel) viaje3 = guiCreateButton(10, 147, 208, 47, "San Fierro 5000 $", false, panel) viaje4 = guiCreateButton(10, 204, 208, 47, "WhetStone 10000 $", false, panel) showCursor ( true ) addEventHandler ( "onClientGUIClick", viaje1, viaje11, false ) addEventHandler ( "onClientGUIClick", viaje2, viaje22, false ) addEventHandler ( "onClientGUIClick", viaje3, viaje33, false ) addEventHandler ( "onClientGUIClick", viaje4, viaje44, false ) end end ) ------------------------------------------------------------------------------------------------------------ function viaje11 ( hitElement ) showCursor ( false ) guiSetVisible (panel, not guiGetVisible ( panel ) ) triggerServerEvent ( "onGreetinA", localPlayer ) end addEventHandler ("onClientGUIClick", viaje11, true ) ------------------------------------------------------------------------------------------------------------ function viaje22 ( commandName ) triggerServerEvent ( "onGreetinB", localPlayer ) end addEventHandler ("onClientGUIClick", viaje22, true ) ------------------------------------------------------------------------------------------------------------ function viaje33 ( commandName ) triggerServerEvent ( "onGreetinC", localPlayer ) end addEventHandler ("onClientGUIClick", viaje33, true ) ------------------------------------------------------------------------------------------------------------ function viaje44 ( commandName ) triggerServerEvent ( "onGreetinD", localPlayer ) end addEventHandler ("onClientGUIClick", viaje44, true ) Link to comment
gghvcffcv Posted March 9, 2014 Author Share Posted March 9, 2014 Lol. its onClientGUIClick not onClientGUICLick addEventHandler("onClientMarkerHit", resourceRoot, function( hitElement ) if ( hitElement == localPlayer ) then panel = guiCreateWindow(591, 88, 226, 599, "Trucker", false) guiWindowSetSizable(panel, false) viaje1 = guiCreateButton(10, 33, 208, 47, "Los Santos 8000 $", false, panel) viaje2 = guiCreateButton(10, 90, 208, 47, "Las Venturas 8000 $", false, panel) viaje3 = guiCreateButton(10, 147, 208, 47, "San Fierro 5000 $", false, panel) viaje4 = guiCreateButton(10, 204, 208, 47, "WhetStone 10000 $", false, panel) showCursor ( true ) addEventHandler ( "onClientGUIClick", viaje1, viaje11, false ) addEventHandler ( "onClientGUIClick", viaje2, viaje22, false ) addEventHandler ( "onClientGUIClick", viaje3, viaje33, false ) addEventHandler ( "onClientGUIClick", viaje4, viaje44, false ) end end ) ------------------------------------------------------------------------------------------------------------ function viaje11 ( hitElement ) showCursor ( false ) guiSetVisible (panel, not guiGetVisible ( panel ) ) triggerServerEvent ( "onGreetinA", localPlayer ) end addEventHandler ("onClientGUIClick", viaje11, true ) ------------------------------------------------------------------------------------------------------------ function viaje22 ( commandName ) triggerServerEvent ( "onGreetinB", localPlayer ) end addEventHandler ("onClientGUIClick", viaje22, true ) ------------------------------------------------------------------------------------------------------------ function viaje33 ( commandName ) triggerServerEvent ( "onGreetinC", localPlayer ) end addEventHandler ("onClientGUIClick", viaje33, true ) ------------------------------------------------------------------------------------------------------------ function viaje44 ( commandName ) triggerServerEvent ( "onGreetinD", localPlayer ) end addEventHandler ("onClientGUIClick", viaje44, true ) didnt see thanks 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