gghvcffcv Posted March 24, 2014 Share Posted March 24, 2014 Hello Guys, i created two Resources in this case (Two Jobs ) Swat, Trainee. the problem is If i start Swat then Trainee and i am in SWAT Marker it gives me Trainee Skin If i am in Trainee Marker and Start SWAT Resource it gives me SWAT Skin. Here are the resources: SWAT Client: local marker4 = createMarker( 1580.71582, -1636.59607, 12.55793, "Cylinder", 1, 0, 0, 255, 200) local ped = createPed ( 282, 1580.71582, -1636.59607, 13.55793, 90) function panelB(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then panelB = guiCreateWindow(443, 132, 416, 514, "S.W.A.T Job", false) guiWindowSetSizable(panelB, false) aceptar = guiCreateButton(16, 282, 169, 72, "Accept", false, panelB) cerrar = guiCreateButton(230, 282, 169, 72, "Close", false, panelB) memo = guiCreateMemo(12, 26, 382, 238, "Welcome to the Trainee Job Accept this job if you Want to do Justice.", false, panelB) showCursor (true) addEventHandler ("onClientGUIClick", aceptar, aceptarrB, false ) addEventHandler ("onClientGUIClick", cerrar, cerrarrB, false ) guiMemoSetReadOnly(memo, true) end end addEventHandler("onClientMarkerHit", marker4, panelB ) function aceptarrB ( hitElement ) triggerServerEvent ( "onGreetinC", localPlayer) guiSetVisible ( panelB, false ) showCursor(false) end function cerrarrB ( hitElement ) triggerServerEvent ( "onGreetinA", localPlayer) guiSetVisible ( panelB, false ) showCursor(false) end Trainee CLIENT: local marker5 = createMarker( 1288.17566, -1641.94141, 12.54688, "Cylinder", 1, 0, 0, 255, 200) local pedi = createPed ( 285, 1288.17566, -1641.94141, 13.54688, 270) function panel(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then panel = guiCreateWindow(443, 132, 416, 514, "S.W.A.T Job", false) guiWindowSetSizable(panel, false) aceptar = guiCreateButton(16, 282, 169, 72, "Accept", false, panel) cerrar = guiCreateButton(230, 282, 169, 72, "Close", false, panel) memo = guiCreateMemo(12, 26, 382, 238, "Welcome to the SWAT Job Accept this job if you are an SWAT\nIf you aren't a swat You cannot accept this Job.", false, panel) showCursor (true) addEventHandler ("onClientGUIClick", aceptar, aceptarr, false ) addEventHandler ("onClientGUIClick", cerrar, cerrarr, false ) guiMemoSetReadOnly(memo, true) end end addEventHandler("onClientMarkerHit", marker5, panel ) function aceptarr ( hitElement ) triggerServerEvent ( "onGreetin", localPlayer) guiSetVisible ( panel, false ) showCursor(false) end function cerrarr ( hitElement ) triggerServerEvent ( "onGreetinA", localPlayer) guiSetVisible ( panel, false ) showCursor(false) end Link to comment
justn Posted March 24, 2014 Share Posted March 24, 2014 Well, maybe it's because you're triggering the same Event "onGreetinA" Sometimes when you do that the stuff gets bugged 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