--[[--
Script Made By Maria
--]]--
-- 0º Part GUI
GUIEditor_Window = {}
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}
GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false)
guiWindowSetMovable(GUIEditor_Window[1],false)
guiWindowSetSizable(GUIEditor_Window[1],false)
guiSetVisible(GUIEditor_Window[1],false)
GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1])
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1])
GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1])
GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1])
FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1])
guiEditSetMaxLength(FireS,2)
GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1])
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1])
guiLabelSetColor(GUIEditor_Label[2],0,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1])
guiEditSetMaxLength(GUIEditor_Edit[1],3)
GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1])
GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1])
GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1])
GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1])
GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2])
guiLabelSetColor(GUIEditor_Label[3],0,255,255)
guiSetFont(GUIEditor_Label[3],"default-bold-small")
GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2])
GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2])
GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2])
GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2])
GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2])
GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2])
GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2])
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2])
GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2])
GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2])
GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2])
--GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2])
--GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",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
r = guiGetText(GUIEditor_Edit[1])
g = guiGetText(GUIEditor_Edit[2])
b = guiGetText(GUIEditor_Edit[3])
setWaterColor(r,g,b,255)
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)
end
end
addEventHandler("onClientGUIClick",getRootElement(),att)
-- 4º Part Open
function open()
guiSetVisible(GUIEditor_Window[1],true)
showCursor(true)
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)
setWaterColor doesn't have a player argument.