golanu21 Posted March 27, 2013 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
ZL|LuCaS Posted March 27, 2013 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
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 WTF... all what id do with gui .. has visibile for all players... in any script ,
ZL|LuCaS Posted March 27, 2013 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
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 but in any script ..where exist a gui... "command, or marker", the gui is visbile for all
PaiN^ Posted March 27, 2013 Posted March 27, 2013 I don't understand ! I meant by where client side or server side ? in or out of the resource ?
golanu21 Posted March 27, 2013 Author 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
iPrestege Posted March 27, 2013 Posted March 27, 2013 You have to create the marker in the same script .
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 You have to create the marker in the same script . it is
PaiN^ Posted March 27, 2013 Posted March 27, 2013 Then show us where, Which side client or server -__-"
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 and i have .. a downloaded script from communtity with gui... and this is resulted
denny199 Posted March 27, 2013 Posted March 27, 2013 addEventHandler("onClientMarkerHit", Marker1, function ( hitPlayer, matchingDimension) if ( hitPlayer == localPlayer ) then guiSetVisible(fereastra, true) showCursor(true) end end)
golanu21 Posted March 27, 2013 Author 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
codeluaeveryday Posted March 27, 2013 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)
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