Gat
Members-
Posts
20 -
Joined
-
Last visited
Details
-
Gang
Ca$hout Crew
-
Occupation
Gang Bang!
Recent Profile Visitors
1,048 profile views
Gat's Achievements
Civilian (7/54)
1
Reputation
-
Hello guys, can any staff delete all my posts on forums? I wanna delete them for personal reasons.
-
Yes, I'm teaching lua and sql there for free, just ask what do u wanna learn
-
Can anyone tell me how to add a command for the bot??! Pls Can anyone tell me how to add a command to this bot??! Pls
-
Hi, I want a good way to learn database functions and sql, i really had many problems in my scripts without a database, so i want to be pro in database scripting. So pls if u have a good way tell me
-
Hi guys,im stuck here... I want when i press on GUIEditor.button[1] it sends that i typed in GUIEditor.edit[1] to selected player.. --client GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 528) / 2, (screenH - 183) / 2, 528, 183, "dm panel - gat", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(29, 32, 186, 142, false, GUIEditor.window[1]) local column = guiGridListAddColumn(GUIEditor.gridlist[1], "players", 0.9) GUIEditor.button[1] = guiCreateButton(247, 107, 271, 60, "DM", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(247, 32, 269, 65, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(216, 63, 31, 15, "close", false, GUIEditor.window[1]) for id, player in pairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName ( player ), false, false ) guiSetVisible(GUIEditor.window[1], false ) end end ) function show () if guiGetVisible(GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1], false ) showCursor (false) else guiSetVisible(GUIEditor.window[1], true ) showCursor (true) end end addCommandHandler("dm", show) function clickin () if source == GUIEditor.label[1] then guiSetVisible(GUIEditor.window[1], false ) showCursor (false) elseif source == GUIEditor.button[1] then if guiGetText(GUIEditor.edit[1] ) == "" then return end --im stoped here, showCursor (false) guiSetVisible(GUIEditor.window[1], false ) end end addEventHandler("onClientGUIClick", root, clickin)
-
If u make something like guieditor but dgseditor will be the best script, more than main mta gui! Good luck
-
Hey guys i saw many servers have a resource make staff/Moderators able to warp using F11 map, by clicking anywhere on the map they will warp there.. like mta freeroam map warping.... So if someone have this resource pls gimme it... I want it fast, Thnx
-
Before testing it.. outputChatBox in client side contains txt, r, g, b only so it won't work, listen... I mean when i select a player and press send button.. It sends the message that i typed in editbox to selected player...can u make a short explain for working one without much explaining pls, I'm not new in scripting so I'll understand a short explaining. Edit: addEvent has 1 arg and 1 optional arg... Why u used it as addEventHandler with 3 args?!
-
I made an script that make staffs can open an panel by using /dm then choose a player and type a message then send it... But my problem is i don't know how to trigger this to put this code in server side outputChatBox(msg, selectedplayer, 255, 255, 255, true) I mean to send the message to selected player only... client variables: msg = guiGetText(editbox) selectedplayer = guiGridListGetSelectedItem(gridlist) Help pls
-
function time(message, messageType) setTimer( for _, v = 0,3 do if messageType = ( v ) then cancelEvent() outputChatBox("U must wait for 2mins at least to start chatting" thePlayer) end end 120000, 1) end addEventHandler("onPlayerLogin", getRootElement(), time)
-
function click() if source == GUIEditor.Button[9] then outputChatBox("تم إغلاق اللوحة بنجاح", 0, 255, 0) end end addEventHandler("onClientGUIClick", GUIEditor.Button[9], click) Try it.
-
Oh sorry Lee I mean the professional developer but you have to use the true IDs hhh [True IDs] Thnx is enough, Bye