Snow-Man Posted October 10, 2013 Share Posted October 10, 2013 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
Castillo Posted October 10, 2013 Share Posted October 10, 2013 createTeam is a server side only function, and for what it seems, your script is mostly client side. Link to comment
Snow-Man Posted October 10, 2013 Author Share Posted October 10, 2013 createTeam is a server side only function, and for what it seems, your script is mostly client side. my friend fixed it and told me go change your meta.xml < you should use only client side > 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