Jump to content

Try

Members
  • Posts

    136
  • Joined

  • Last visited

Everything posted by Try

  1. TerroristTeam = createTeam("TERRORIST", 255, 0, 0) PoliceTeam = createTeam("POLICE", 0, 0, 255) addEvent("onTeamSelect", true) addEventHandler("onTeamSelect", root, function(team) local sPlayerNickname = getPlayerName ( source ) if team == "TERRORIST" then spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, TerroristTeam) outputChatBox(#ff0000".~ You selected TERRORIST ~.", source) elseif team == "POLICE" then outputChatBox(#0000ff".~ You selected POLICE ~.", source) spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, PoliceTeam) end fadeCamera(source, true) setCameraTarget(source) end) addEventHandler("onPlayerWasted", root, function(team) local hueteam = getPlayerTeam (team) if hueteam == TerroristTeam then spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, TerroristTeam) elseif hueteam == PoliceTeam then spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, PoliceTeam) end fadeCamera(source, true) setCameraTarget(source) outputChatBox("#00ff00.~ You have been respawned! ~.", source) end) Stills not working
  2. Sever-Side: I just add on player wasted but it dont works... added the setElementData and getElementData TerroristTeam = createTeam("TERRORIST", 255, 0, 0) PoliceTeam = createTeam("POLICE", 0, 0, 255) addEvent("onTeamSelect", true) addEventHandler("onTeamSelect", root, function(team) local sPlayerNickname = getPlayerName ( source ) if team == "TERRORIST" then spawnPlayer(client, 1959.55, -1714.46, 10, 0, 0, 0, 0, TerroristTeam) setElementData ( source, "terrorist", sPlayerNickname) elseif team == "POLICE" then spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, PoliceTeam) setElementData ( source, "police", sPlayerNickname) end fadeCamera(source, true) setCameraTarget(source) outputChatBox("Welcome to MyServer.", client) end) addEventHandler("onPlayerWasted", root, function(source) if getElementData ( client, "terrorist") then spawnPlayer(client, 1959.55, -1714.46, 10, 0, 0, 0, 0, TerroristTeam) elseif getElementData ( source, "police") then spawnPlayer(source, 1959.55, -1714.46, 10, 0, 0, 0, 0, PoliceTeam) end fadeCamera(source, true) setCameraTarget(source) outputChatBox("#00ff00You have Respawned!", source) end)
  3. Hi, i just back to MTA... Help me with that code, what its wrong? GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(671, 298, 250, 176, "Choose your team! ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) showCursor(true) GUIEditor.button[1] = guiCreateButton(15, 34, 105, 132, "TERRORIST", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "7FFF0909") GUIEditor.button[2] = guiCreateButton(130, 34, 105, 132, "POLICE", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "7F0C28FB") if GUIEditor.button[1] then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to MyServer.", client) elseif GUIEditor.button[2] then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to MyServer.", client) end end end )
  4. Try

    Freeroam Table

    hey guys take a look at the logo Look the space in gui and logo have how to solve? and the separator the space is down it look and see the editor don`t have {'br'}, and nothing how to solve? http://imgur.com/muQbs Edit: DOOOOOONE I SOLVEEEEEEEEEEDDD THANKS CASTILLO FOR ALL THE HELP Have a nice day, Mari.
  5. Try

    Freeroam Table

    But now i have other question how to set a label color at the freeroam like the x y z i want set it to green Sorry i don`t know that at freeroam
  6. Try

    Freeroam Table

    THANKSSSSSSSS CASTILLLLLLOOO!!!! THAT HELPED ME MUUUCHH!!!!!! Thanks!
  7. Try

    Freeroam Table

    errr...................... U DIDN~T SAW THE TITLE FREEROAM TABLE That Means is at Freeroam script fr_client.lua
  8. Try

    Freeroam Table

    I solved about the logo but now i have another problem how to set gui alpha for totality black i tried setGuiAlpha(wndMain,1) but i don`t know where to put it can someone help me? Thanks for all, Mari.
  9. Ooops sorry i lost i lost put the logo in meta.xml
  10. Err... guy u are crazy look this like of your code function globalOOC(thePlayer, commandName, ...) local root = getRootElement() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then cancelEvent(true) --------------------------------------- if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then cancelEvent(true) ---------------------------------------- if noone talk u are asking for get the headadmin account then cancelevent? wtf u have to get who don`t said then cancel the event then ask for account get so look how: if (msgtype == 0) then cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then then u can and u don`t need cancel the event all the time
  11. Hehehehehe i need a help look the code the image don`t show!!!! the logo is at the folder the resource folder. wndMain = { 'wnd', text = 'BADWOLF FREEROAM', x = 10, y = 170, width = 250, controls = { {'img', src='logo.png', width=280, height=5 }, {'br'}, {'btn', id='kill', onclick=killLocalPlayer}, {'btn', id='skin', window=wndSkin}, {'btn', id='anim', window=wndAnim}, --{'btn', id='weapon', window=wndWeapon}, {'btn', id='clothes', window=wndClothes}, --{'btn', id='playergrav', text='grav', window=wndGravity}, {'btn', id='warp', window=wndWarp}, {'btn', id='Teleports', onclick=teleports}, --{'btn', id='stats', window=wndStats}, --{'btn', id='bookmarks', window=wndBookmarks}, {'br'}, {'chk', id='jetpack', onclick=toggleJetPack}, {'chk', id='falloff', text='fall off bike', onclick=toggleFallOffBike}, {'br'}, {'lbl', text='Pos:'}, {'lbl', id='xpos', text='x', width=45}, {'lbl', id='ypos', text='y', width=45}, {'lbl', id='zpos', text='z', width=45}, {'btn', id='setpos', text='map', window=wndSetPos}, {'btn', id='setinterior', text='int', window=wndSetInterior}, {'br'}, {'br'}, {'lbl', text='Vehicles'}, {'br'}, {'lbl', text='Current:'}, {'lbl', id='curvehicle'}, {'br'}, {'btn', id='createvehicle', window=wndCreateVehicle, text='create vehicle'}, {'btn', id='repair', onclick=repairVehicle}, {'btn', id='flip', onclick=flipVehicle}, {'btn', id='upgrades', window=wndUpgrades}, {'btn', id='color', onclick=openColorPicker}, {'btn', id='paintjob', window=wndPaintjob}, {'br'}, {'chk', id='lightson', text='Lights on', onclick=forceLightsOn}, {'chk', id='lightsoff', text='Lights off', onclick=forceLightsOff}, {'br'}, }, oncreate = mainWndShow, onclose = mainWndClose }
  12. I think yes cuz if i use setPedAimTarget(.......) then i say to ped shot it would shot it i think but thanks
  13. okokok THANKS CASTILLO!!!!!!!!!!!!!!!!
  14. Thanks Twister and Klesh u are thinking im new at this forum hahaha new is you! guy i helped all and i don`t asked the function i asked how to i need a explaning not functions!
  15. Hey! Yeah im back again! I want 2 helps 1: Have a function to set the ped target? 2: How to add images to freeroam_gui? (i losted how to do ) Thanks, Mari.
  16. Try

    GUI Error

    Okkk okkk guys all solved!! Thanks for allllllllllllllllll the peoples who helped me (2 peoples)
  17. Try

    GUI Error

    ok ok still not workinnnggg its says its a bad argument but let me try to explain ok setElementData(source,"userr", HERE ITS LIKE THIS ---> #00ff00[bW] so if i separete idk if it work i will try again but now only with one edit
  18. Try

    GUI Error

    ok butt the debugscript 3 the client:143 tiggerServerEvent (a nil value) EDIT OK OK SOLVED ITS TRIGGER NOT TIGGER Lol But thanks
  19. Try

    GUI Error

    Ok Ok If u look at the script you will see (at the client) 161. guiSetText(GUIEditor_Label[7],xa) 162. guiSetText(GUIEditor_Label[8],ya) 163. guiSetText(GUIEditor_Label[9],za) 164. nam = getPlayerName(localPlayer) 165. guiSetText(GUIEditor_Label[6],nam) 166. mon = getPlayerMoney(localPlayer) 167. guiSetText(GUIEditor_Label[10],mon) idk where put it I need it work when the player open the window ------------------------------ And the other its here: idk why don't work [server] 117. function tag ( source, client, col, ta ) 118. setElementData(source,"userr",col,ta) 119. end 120. addEvent( "tagg", true ) 121. addEventHandler( "tagg", getRootElement(), tag) [Client] 139. function tag(button, state) 140. if (source == GUIEditor_Button[1]) then 141. ta = guiGetText(GUIEditor_Edit[2]) 142. col = guiGetText(GUIEditor_Edit[1]) 143. tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) 144. end 145. end 146. addEventHandler("onClientGUIClick",getRootElement(),tag) Can you help me??
  20. Try

    GUI Error

    ok ok this script past but now ITS V3 Guess Whatttt I need Help! * I need the setElementData to server side and working with the 2 edits the color and the other tag edit * And i need a help with the User Info idk where put it [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(491,314,351,344,"Member Stuffs --- by Maria",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,333,311,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User Info",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,11,38,16,"Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,31,11,15,"X:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(12,50,11,15,"Y:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(12,71,11,15,"Z:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(12,91,42,16,"Money:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(53,11,200,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(29,31,249,12,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(28,50,176,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(28,71,204,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(59,91,265,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(12,119,139,17,"Set Tag/Set Tag Color:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[11],0,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,149,71,21,"#00ff00",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],7) GUIEditor_Label[12] = guiCreateLabel(87,151,26,17,"--->",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,100,255) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(117,149,116,21,"Your #00ff00[TAG] here!",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Button[1] = guiCreateButton(10,182,223,22,"Set Tag",false,GUIEditor_Tab[1]) GUIEditor_Label[13] = guiCreateLabel(45,218,244,56,"BADWOLF",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[13],"sa-header") GUIEditor_Tab[2] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Label[14] = guiCreateLabel(10,10,115,17,"Create Fire: <1-99>",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(10,30,40,20,"5",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],2) GUIEditor_Button[2] = guiCreateButton(56,30,269,20,"Create Fire",false,GUIEditor_Tab[2]) GUIEditor_Label[15] = guiCreateLabel(10,59,115,17,"Items:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(10,83,86,19,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(124,83,86,19,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(235,83,86,19,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(10,111,86,19,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(124,110,86,19,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(235,109,86,19,"Infrared",false,GUIEditor_Tab[2]) GUIEditor_Label[16] = guiCreateLabel(10,136,115,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,100,255) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(10,159,86,19,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(124,159,86,19,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(235,159,86,19,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(10,186,86,19,"Money Bag",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(124,186,86,19,"Dolphin",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(235,186,86,19,"Submarine",false,GUIEditor_Tab[2]) GUIEditor_Label[17] = guiCreateLabel(28,238,276,17,"Any bugs/sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,0) guiSetFont(GUIEditor_Label[17],"default-bold-small") -- 1º Part Buttons function fire(button, state) if (source == GUIEditor_Button[2]) then nun = guiGetText(GUIEditor_Edit[3]) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) end end addEventHandler("onClientGUIClick",getRootElement(),fire) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) xa,ya,za = getElementPosition(localPlayer) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) guiSetText(GUIEditor_Label[7],xa) guiSetText(GUIEditor_Label[8],ya) guiSetText(GUIEditor_Label[9],za) nam = getPlayerName(localPlayer) guiSetText(GUIEditor_Label[6],nam) mon = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[10],mon) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) [sERVER] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) x ,y, z = getElementPosition(source) shark1 = createObject(1608,x,y,z) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) xx, yy, zz = getElementPosition(source) love = createObject(1240,xx,yy,zz) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) xxx, yyy, zzz = getElementPosition(source) money = createObject(1550,xxx,yyy,zzz) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) xxxx ,yyyy, zzzz = getElementPosition(source) turtl1 = createObject(1609,xxxx,yyyy,zzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function su ( source ) xxxxx ,yyyyy, zzzzz = getElementPosition(source) su1 = createObject(1609,xxxxx,yyyyy,zzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SUBMARINE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sur", true ) addEventHandler( "sur", getRootElement(), su) function asd ( source ) xxxxxx ,yyyyyy, zzzzzz = getElementPosition(source) dol1 = createObject(1609,xxxxxx,yyyyyy,zzzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00DOLTHIN#ffffff! (1 min)",source,255,255,255,true) end addEvent( "dol", true ) addEventHandler( "dol", getRootElement(), asd) function tag ( source, client, col, ta ) setElementData(source,"userr",col,ta) end addEvent( "tagg", true ) addEventHandler( "tagg", getRootElement(), tag) function open(source) acc = getAccountName(getPlayerAccount(source)) if acc == "Armadillo" or acc == "Driver4r" or acc == "jamer123" then triggerClientEvent (source, "opening", source) else acc1 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc1, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc2 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc2, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc3 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc3, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end)
  21. Try

    GUI Error

    [server] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) x ,y, z = getElementPosition(source) shark1 = createObject(1608,x,y,z) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) xx, yy, zz = getElementPosition(source) love = createObject(1240,xx,yy,zz) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) xxx, yyy, zzz = getElementPosition(source) money = createObject(1550,xxx,yyy,zzz) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) xxxx ,yyyy, zzzz = getElementPosition(source) turtl1 = createObject(1609,xxxx,yyyy,zzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function su ( source ) xxxxx ,yyyyy, zzzzz = getElementPosition(source) su1 = createObject(1609,xxxxx,yyyyy,zzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SUBMARINE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sur", true ) addEventHandler( "sur", getRootElement(), su) function asd ( source ) xxxxxx ,yyyyyy, zzzzzz = getElementPosition(source) dol1 = createObject(1609,xxxxxx,yyyyyy,zzzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00DOLTHIN#ffffff! (1 min)",source,255,255,255,true) end addEvent( "dol", true ) addEventHandler( "dol", getRootElement(), asd) function open(source) acc = getAccountName(getPlayerAccount(source)) if acc == "Armadillo" or acc == "Driver4r" or acc == "jamer123" then triggerClientEvent (source, "opening", source) else acc1 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc1, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc2 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc2, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc3 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc3, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) [Client] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(491,314,351,344,"Member Stuffs --- by Maria",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,333,311,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User Info",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,11,38,16,"Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,31,11,15,"X:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(12,50,11,15,"Y:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(12,71,11,15,"Z:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(12,91,42,16,"Money:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(53,11,200,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(29,31,249,12,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(28,50,176,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(28,71,204,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(59,91,265,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(12,119,139,17,"Set Tag/Set Tag Color:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[11],0,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") --GUIEditor_Edit[1] = guiCreateEdit(11,149,71,21,"#00ff00",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],7) --GUIEditor_Label[12] = guiCreateLabel(87,151,26,17,"--->",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,100,255) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(117,149,116,21,"Your #00ff00[TAG] here!",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Button[1] = guiCreateButton(10,182,223,22,"Set Tag",false,GUIEditor_Tab[1]) GUIEditor_Label[13] = guiCreateLabel(45,218,244,56,"BADWOLF",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[13],"sa-header") GUIEditor_Tab[2] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Label[14] = guiCreateLabel(10,10,115,17,"Create Fire: <1-99>",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(10,30,40,20,"5",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],2) GUIEditor_Button[2] = guiCreateButton(56,30,269,20,"Create Fire",false,GUIEditor_Tab[2]) GUIEditor_Label[15] = guiCreateLabel(10,59,115,17,"Items:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(10,83,86,19,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(124,83,86,19,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(235,83,86,19,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(10,111,86,19,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(124,110,86,19,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(235,109,86,19,"Infrared",false,GUIEditor_Tab[2]) GUIEditor_Label[16] = guiCreateLabel(10,136,115,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,100,255) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(10,159,86,19,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(124,159,86,19,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(235,159,86,19,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(10,186,86,19,"Money Bag",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(124,186,86,19,"Dolphin",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(235,186,86,19,"Submarine",false,GUIEditor_Tab[2]) GUIEditor_Label[17] = guiCreateLabel(28,238,276,17,"Any bugs/sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,0) guiSetFont(GUIEditor_Label[17],"default-bold-small") -- 1º Part Buttons function fire(button, state) if (source == GUIEditor_Button[2]) then nun = guiGetText(GUIEditor_Edit[3]) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) end end addEventHandler("onClientGUIClick",getRootElement(),fire) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) setElementData(localPlayer,"userr",ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) xa,ya,za = getElementPosition(localPlayer) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) guiSetText(GUIEditor_Label[7],xa) guiSetText(GUIEditor_Label[8],ya) guiSetText(GUIEditor_Label[9],za) nam = getPlayerName(localPlayer) guiSetText(GUIEditor_Label[6],nam) mon = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[10],mon) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close)
  22. Try

    GUI Error

    ok ok this script past but now ITS V3 Guess Whatttt I need Help! * I need the setElementData to server side and working with the 2 edits the color and the other tag edit * And i need a help with the User Info idk where put it
  23. Try

    GUI Error

    If i do 255 0 0 dont' go red go green, 0 255 0 its blue 0 0 255 do black
  24. Try

    GUI Error

    Ok ok ok ok i need other think! The Water Color is not setting correct! 1 2 3 RED GREEN BLUE [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(480,338,306,272,"Members Stuffs -- by Mari",false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,22,288,241,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Create/Set",GUIEditor_TabPanel[1]) GUIEditor_Grid[1] = guiCreateGridList(496,93,5,5,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(10,10,126,15,"Create Fire: <1-20>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],100,0,255) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,109,149,15,"Set Water Color: <0-255>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],100,0,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(10,34,64,18,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],2) GUIEditor_Button[1] = guiCreateButton(10,64,267,18,"Create Fire",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(12,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],3) GUIEditor_Edit[3] = guiCreateEdit(90,134,64,18,"0",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[3],3) GUIEditor_Edit[4] = guiCreateEdit(171,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[4],3) GUIEditor_Button[2] = guiCreateButton(10,167,267,18,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Items",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(11,11,122,16,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,36,79,15,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(197,36,79,15,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(103,36,79,15,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,62,79,15,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(103,62,79,15,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(197,62,79,15,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(11,93,122,16,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,118,79,15,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(104,118,79,15,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(197,118,79,15,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,145,79,15,"Money",false,GUIEditor_Tab[2]) GUIEditor_Label[5] = guiCreateLabel(7,181,274,17,"Any Bugs/Sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(104,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(197,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then red = guiGetText(GUIEditor_Edit[1]) if red == "" then return end green = guiGetText(GUIEditor_Edit[2]) if green == "" then return end blue = guiGetText(GUIEditor_Edit[3]) if blue == "" then return end setWaterColor(red,green,blue,250) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close)
  25. Try

    GUI Error

    Castillo: 4 thinks to say to you: You are the BEST! GUY HOW OLD YOU HAVEEE? HOW OLD OF PROGRAMATION? 16 years? 15 programation?
×
×
  • Create New...