golanu21 Posted March 27, 2013 Share Posted March 27, 2013 GUIEditor = { label = {}, } fereastra = guiCreateWindow(684, 359, 449, 424, "Ls/Sf/Lv", false) guiWindowSetSizable(fereastra, false) guiSetAlpha(fereastra, 0.89) GUIEditor.label[1] = guiCreateLabel(8, 33, 353, 54, "Incotro sefule?", false, fereastra) guiSetFont(GUIEditor.label[1], "sa-header") LS = guiCreateButton(9, 129, 431, 99, "Los Santos", false, fereastra) guiSetProperty(LS, "NormalTextColour", "FFAAAAAA") SF = guiCreateButton(10, 228, 430, 104, "San Fierro", false, fereastra) guiSetProperty(SF, "NormalTextColour", "FFAAAAAA") LV = guiCreateButton(9, 332, 431, 83, "Las Venturas", false, fereastra) guiSetProperty(LV, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(397, 23, 42, 33, "X", false, fereastra) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") PI = guiCreateButton(9, 84, 431, 44, "Pirate Island", false, fereastra) guiSetProperty(PI, "NormalTextColour", "FFAAAAAA") guiSetVisible(fereastra, false) --script-- --GUI VISIBILE --*Marker1 addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) i make that, and a player enter in marker .. the gui has visibile for all players Link to comment
ZL|LuCaS Posted March 27, 2013 Share Posted March 27, 2013 GUIEditor = { label = {}, } fereastra = guiCreateWindow(684, 359, 449, 424, "Ls/Sf/Lv", false) guiWindowSetSizable(fereastra, false) guiSetAlpha(fereastra, 0.89) GUIEditor.label[1] = guiCreateLabel(8, 33, 353, 54, "Incotro sefule?", false, fereastra) guiSetFont(GUIEditor.label[1], "sa-header") LS = guiCreateButton(9, 129, 431, 99, "Los Santos", false, fereastra) guiSetProperty(LS, "NormalTextColour", "FFAAAAAA") SF = guiCreateButton(10, 228, 430, 104, "San Fierro", false, fereastra) guiSetProperty(SF, "NormalTextColour", "FFAAAAAA") LV = guiCreateButton(9, 332, 431, 83, "Las Venturas", false, fereastra) guiSetProperty(LV, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(397, 23, 42, 33, "X", false, fereastra) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") PI = guiCreateButton(9, 84, 431, 44, "Pirate Island", false, fereastra) guiSetProperty(PI, "NormalTextColour", "FFAAAAAA") guiSetVisible(fereastra, false) --script-- --GUI VISIBILE --*Marker1 addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) i make that, and a player enter in marker .. the gui has visibile for all players show the complete code Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 WTF... all what id do with gui .. has visibile for all players... in any script , Link to comment
PaiN^ Posted March 27, 2013 Share Posted March 27, 2013 Where do you create Marker1 ? Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 in ... very far from the map... Link to comment
ZL|LuCaS Posted March 27, 2013 Share Posted March 27, 2013 WTF... all what id do with gui .. has visibile for all players... in any script , you'll have to post the full code Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 but in any script ..where exist a gui... "command, or marker", the gui is visbile for all Link to comment
PaiN^ Posted March 27, 2013 Share Posted March 27, 2013 I don't understand ! I meant by where client side or server side ? in or out of the resource ? Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 man ... i have a gamemode... in all script where i have a gui . whit markers , command etc.. the gui become visible to everyone Link to comment
iPrestege Posted March 27, 2013 Share Posted March 27, 2013 You have to create the marker in the same script . Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 You have to create the marker in the same script . it is Link to comment
PaiN^ Posted March 27, 2013 Share Posted March 27, 2013 Then show us where, Which side client or server -__-" Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 and i have .. a downloaded script from communtity with gui... and this is resulted Link to comment
denny199 Posted March 27, 2013 Share Posted March 27, 2013 addEventHandler("onClientMarkerHit", Marker1, function ( hitPlayer, matchingDimension) if ( hitPlayer == localPlayer ) then guiSetVisible(fereastra, true) showCursor(true) end end) Link to comment
golanu21 Posted March 27, 2013 Author Share Posted March 27, 2013 addEventHandler("onClientMarkerHit", Marker1, function ( hitPlayer, matchingDimension) if ( hitPlayer == localPlayer ) then guiSetVisible(fereastra, true) showCursor(true) end end) this is man.. hitElement forgotten, thanx man Link to comment
codeluaeveryday Posted March 27, 2013 Share Posted March 27, 2013 INCORRECT: addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) This is triggered when anyone hits the marker, so no wonder this is happening, so use this. CORRECT: addEventHandler("onClientMarkerHit", Marker1, function (hitPlayer, matchingDimension) if hitPlayer == localPlayer then guiSetVisible(fereastra, true) showCursor(true) end end) Link to comment
denny199 Posted March 27, 2013 Share Posted March 27, 2013 it's already solved dude... Link to comment
codeluaeveryday Posted March 27, 2013 Share Posted March 27, 2013 Woops, didn't see the second page. 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