Jump to content

[HELP]


Recommended Posts

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

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...