Jump to content

[Help] Mechanic Job


Snow-Man

Recommended Posts

any one fix my second script

  
marker = createMarker (205.28984069824, 1917.2662353516, 16.640625, 27 , "cylinder", 1.5, 255 ,255, 255, 155) 
blip = createBlipAttachedTo(marker, 27) 
mecTeam = createTeam ("Mechanic", 255, 153, 0) 
  
addEventHandler("onClientMarkerHit", marker,  
    function() 
        guiSetVisible(windowmech,true) 
        showCursor (true) 
    end 
)     
  
windowmech = guiCreateWindow (0.3,0.2,0.4,0.4,"Mechanic",true) 
guiSetVisible(windowmech,false) 
memo = guiCreateMemo (0.1,0.1,0.8,0.7,"This job require patient,you need to find people which vehicle need repair.Access to free TowTruck.",true,windowmech) 
closemech = guiCreateButton (0.6,0.85,0.4,0.1,"Close",true,windowmech) 
buttonmech = guiCreateButton(0,0.85,0.4,0.1,"Take job",true,windowmech) 
  
function buttonClick() 
    if (source == buttonmech) then 
        triggerServerEvent ("mech", localPlayer) 
        guiSetVisible(windowmech, false) 
        showCursor (false) 
    elseif ( source == closemech ) then 
        guiSetVisible(windowmech, false) 
        showCursor (false) 
    end 
end 
addEventHandler ("onClientGUIClick", root, buttonClick)  
  

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