KnucklesSAEG

Members
  • Content count

    98
  • Joined

  • Last visited

Community Reputation

2 Neutral

About KnucklesSAEG

Details

  • Gang
    SAEG
  • Location
    /loc Knuckles
  • Occupation
    SWAT
  • Interests
    Lua/ Making people happy

Recent Profile Visitors

653 profile views
  1. This group is legit, i learned so much
  2. Menu

    SERVER function click( btn, stat, plr) if btn ~= "left" and stat ~= "down" then return end if getElementType( source) ~= "player" then return end triggerClientEvent("showMenu, plr) end addEventHandler( "onElementClicked", getRootElement(), click ) @(SAUG)Tando @(SAUG)Tando Im sure your developer @LilDawage can give you the rest, i already made fullclient.
  3. outputChatBox when player enter the server

    addEventHandler("onPlayerLogin", player, function() outputChatBox("Welcome to the server",root,255,0,0,0) end) Try this @liwahadri
  4. [RPG]San Andreas Extreme Gaming[ALL]

    --------------------NEWS----------------- Team Deathmatch system added. by our Developer Experience system updated. by our Developer.
  5. Interior System Problem

    @Casian27 Remove that system with if in car cannot enter interior my suggestion.
  6. Death

    Try addEventHandler("onPlayerWasted", root, function() local x,y,z = getElementPosition(source) outputChatBox("You have died now respawned to your death location",source,255,0,0) spawnPlayer(source,x,y,z) end @231
  7. Says localPlayer is not a element serverside

    Try changing getLocalPlayer() to getRootElement() and source root
  8. HELP ME Gang_System by: Castillo

    Update meta.xml minimum server virsion
  9. PROBLEM 1- When click accept in client side it dosn't trigger server event 2-I want only specific teams can revive 3-Click Deny not work. CODES: SERVER----- ped = createPed(217,-2407.10815, -597.88330, 132.64844,80) function click( btn, stat, plr) if btn ~= "left" and stat ~= "down" then return end if getElementType( source) ~= "ped" then return end triggerClientEvent("showRevive", getRootElement()) end addEventHandler( "onElementClicked", getRootElement(), click ) addEvent("revieve" ,true) addEventHandler("revieve", root, function () local x, y, z = getElementPosition(source) local Team = getPlayerTeam(source) outputChatBox("Hi") spawnPlayer(source, x, y, z) spawnPlayer(source, x, y, z, 0, 0, 0, 0, Team) setElementHealth(source, 100) setPedAnimation(source, false) setElementData(source, "rev", false) end) CLIENT GUIEditor = { button = {}, window = {}, progressbar = {}, label = {} } addEvent("showRevive", true) addEventHandler("showRevive", root, function(player) if panelOpen then return end panelOpen = true local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(321, 277, 408, 178, "Revive", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(252, 148, 15, 15, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(6, 24, 392, 66, "PLAYER IS TRYING TO REVIVE YOU CLICK ACCEPT TO ACCEPT AND BE ALIVE\nOR CLICK DENY TO DIE AND SUFFER", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) BUTTON1 = guiCreateButton(9, 128, 153, 35, "Accept", false, GUIEditor.window[1]) BUTTON2 = guiCreateButton(235, 128, 153, 35, "Deny", false, GUIEditor.window[1]) GUIEditor.progressbar = guiCreateProgressBar(284, 481, 479, 52, false) end ) addEventHandler("onClientGUIClick", BUTTON1, function () if getElementType(source) == "gui-button" then triggerServerEvent("revieve",root) destroyElement(GUIEditor.window[1],true) showCursor(false) end end) addEventHandler("onClientGUIClick", BUTTON2, function() if getElementType(source) == "gui-button" then destroyElement(GUIEditor.window[1]) showCursor(false) end end)
  10. Help revive system.

    Here s my go GUIEditor = { button = {}, window = {}, progressbar = {}, label = {} } addEvent("ReviveProgress", true) addEventHandler("ReviveProgress", root, function(player) local screenW, screenH = guiGetScreenSize() if isElement(GUIEditor.window[1]) then return end GUIEditor.window[1] = guiCreateWindow(321, 277, 408, 178, "Revive", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(252, 148, 15, 15, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(6, 24, 392, 66, "PLAYER IS TRYING TO REVIVE YOU CLICK ACCEPT TO ACCEPT AND BE ALIVE\nOR CLICK DENY TO DIE AND SUFFER", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.button[1] = guiCreateButton(9, 128, 153, 35, "Accept", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(235, 128, 153, 35, "Deny", false, GUIEditor.window[1]) GUIEditor.progressbar = guiCreateProgressBar(284, 481, 479, 52, false) guiSetVisible(GUIEditor.progressbar, false) end ) addEventHandler("onClientGUIClick", GUIEditor.button[1], function () progress = guiProgressBarGetProgress() guiSetVisible(GUIEditor.window[1], false) guiSetVisible(GUIEditor.progressbar, true) local lol = guiProgressBarGetProgress(GUIEditor.progressbar) setTimer( guiProgressBarSetProgress, 5000, 1,GUIEditor.progressbar,lol+10 ) setTimer( guiProgressBarSetProgress, 10000, 1,GUIEditor.progressbar,lol+20 ) setTimer( guiProgressBarSetProgress, 15000, 1,GUIEditor.progressbar,lol+30 ) setTimer( guiProgressBarSetProgress, 20000, 1,GUIEditor.progressbar,lol+40 ) setTimer( guiProgressBarSetProgress, 25000, 1,GUIEditor.progressbar,lol+50 ) setTimer( guiProgressBarSetProgress, 30000, 1,GUIEditor.progressbar,lol+60 ) setTimer( guiProgressBarSetProgress, 35000, 1,GUIEditor.progressbar,lol+70 ) setTimer( guiProgressBarSetProgress, 40000, 1,GUIEditor.progressbar,lol+80 ) setTimer( guiProgressBarSetProgress, 45000, 1,GUIEditor.progressbar,lol+90 ) setTimer( guiProgressBarSetProgress, 50000, 1,GUIEditor.progressbar,lol+100 ) timer = setTimer( function () triggerServerEvent("revieve", localPlayer) guiSetVisible(GUIEditor.progressbar, false) showCursor(false) guiProgressBarSetProgress(GUIEditor.progressbar, 0) end, 50000,1) end) addEventHandler("onClientGUIClick", GUIEditor.button[2], hideGui) function hideGui() destroyElement(GUIEditor.window[1]) showCursor(false) end SERVER function click(btn, state, plr) if btn ~= "left" and state ~= "down" then return end if getElementType(source) ~= "player" then return end if source ~= plr then return end triggerClientEvent("ReviveProgress", plr) end addEventHandler("onElementClicked", root, click) addEvent("revieve" ,true) addEventHandler("revieve", root, function () local data = getElementData(source, "selected") if (data == true) then local x, y, z = getElementPosition(source) local Team = getPlayerTeam(source) if (getTeamName(Team) ~= "Police") then spawnPlayer(source, x, y, z) spawnPlayer(source, x, y, z, 0, 0, 0, 0, Team) setElementHealth(source, 100) setPedAnimation(source, false) setElementData(source, "rev", false) end end end) @knightscript @knightscript
  11. Hello my name is @KnucklesSAEG but in-game name Knuckles - Information about me ----- Brief Description about SAEG---- Costumized GUIs- SAEG Made a system to make awesome windows, almost all our systems has modified with it Public Vehicle Spawners- SAEG Made a system for new players and even old, if your stranded and near a hospital you can spawn vehicles there are free Vehicles,"Sanchez,"Voodoo","Caddy" 24/7 Shops- SAEG Made a system that you can buy cool weapons such as "Chainsaw","Katana","Poolstick" etc Bus station system- SAEG Made a system that you can travel to diffrent cities and countries with a small fair Job system- SAEG made a awesome system , jobs there are many diffrent jobs located arround the map "Gangster","Police","Trucker","Pilot","Mechanic","Taxi","Hobo","Pizza Delivery" and custom jobs Group System- SAEG Made a system wich you can create your own group and turf and invite members there are 3 diffrent types "Gang"-Can turf ,"Squad"-Arresting,"Clan"-Any job Arresting System- SAEG made a system where you can arrest players, if the player is wanted you will see a blue hand cuff, if the player is dangerous you must kill them WarZone System- SAEG made a fun system where at a specific time of day an event will start named WarZones you can enter by pressing F3>Events>Warzones>join Event ----- Contact information---- Discord:https://discord.gg/hYmbdek Owners Facebbok:Majd Hani picture:blacksuit My contact:FB:Shaheed Ally ------Connection Information----- IP:mtasa://46.105.250.198:27015 Version:3.3
  12. Help revive system.

    its cool but do you know what revive system im talking? let me explain 1. Cop killed criminal, criminal is sleeping 2.If a criminal or someone else clicked criminal while hes still sleeping timer starts 3. timer ends and criminal is alive again
  13. Help when click "PM"

    So when mouse in position and i click it works but even if its out of position and i click it still open local resolutionX = 1366 local resolutionY = 768 local absolute,absoluteyy = nil local msg = {} function dxDrawRelativeText( text,posX,posY,right,bottom,color,scale,mixed_font,alignX,alignY,clip,wordBreak,postGUI ) local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) return dxDrawX( tostring( text ), ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( right/resolutionX )*sWidth, ( bottom/resolutionY)*sHeight, color, ( sWidth/resolutionX )*scale, mixed_font, alignX, alignY, clip, wordBreak, postGUI ) end function dxDrawX( text, x, y, w, h, clr, scale, font, alignX, alignY, clip, wordBreak, postGUI ) if not wh then wh = 1.3 end dxDrawText ( text, x, y, w, h, clr, scale, font, alignX, alignY, clip, wordBreak, postGUI, true) end function guiCreateRelativeLabel( posX, posY, width, height,text,postGUI ) local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) return guiCreateLabel( ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( width/resolutionX )*sWidth, ( height/resolutionY )*sHeight, tostring( text ), postGUI ) end function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sWidth,sHeight = guiGetScreenSize( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx* sWidth ), ( cy* sHeight ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dxDrawRelativeRectangle( posX, posY, width, height,color,postGUI ) local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) return dxDrawRectangle( ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( width/resolutionX )*sWidth, ( height/resolutionY )*sHeight, color, postGUI ) end local x,y = guiGetScreenSize() -- Get players resolution. local sWidth,sHeight = guiGetScreenSize( ) function dxPanel() dxDrawLine(0.2588, 0.6055, 0.2588, 0.6745, tocolor(6, 127, 3, 253), 1, false) dxDrawLine(0.4258, 0.6055, 0.2588, 0.6055, tocolor(6, 127, 3, 253), 1, false) dxDrawLine(0.2588, 0.6745, 0.4258, 0.6745, tocolor(6, 127, 3, 253), 1, false) dxDrawLine(0.4258, 0.6745, 0.4258, 0.6055, tocolor(6, 127, 3, 253), 1, false) dxDrawRectangle(190, 466, 80, 55, tocolor(183, 3, 117, 160), false) dxDrawRelativeText("PM", 265, 466, 462, 505, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRelativeText("Give money", 265, 485, 422, 504, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRelativeText("Invite", 265, 504, 422, 523, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end destroyElement(dxPanel) addEvent("dx", true) addEventHandler("dx", root, function (test) if panelOpen then return end panelOpen = true dxDrawRectangle(150, 150, 80, -300.70, tocolor(183, 3, 117, 160), false) dxDrawRelativeText("PM", 265, 486, 522, 485, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRelativeText("Give money", 265, 485, 422, 504, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRelativeText("Invite", 265, 504, 422, 523, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) addEventHandler("onClientRender", root, dxPanel) end) function loadPlayers(wcard, grid) guiGridListClear(grid) for k, v in ipairs(getElementsByType("player")) do if wcard == " " or wcard == "" or string.find(string.lower(getPlayerName(v)), string.lower(wcard)) then local r = guiGridListAddRow(grid) guiGridListSetItemText(grid, r, 1, getPlayerName(v), false, false) end end end addEventHandler("onClientClick",root, function(bttn,state) if bttn == "left" and state == "down" then if GonnaFade then return false end local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) if isMouseInPosition((265/resolutionX )*sWidth,(466/resolutionY )*sHeight, (462/resolutionX )*sWidth, (505/resolutionY )*sHeight) then local send = guiCreateButton(0.42, 0.70, 0.16, 0.04, "Send message", true) guiSetProperty(send, "NormalTextColour", "FFAAAAAA") guiMemoSetReadOnly(memo, true) local search = guiCreateEdit(0.42, 0.27, 0.16, 0.04, "Search...", true) local sms = guiCreateEdit(0.42, 0.66, 0.16, 0.04, "Type message here...", true) local grid = guiCreateGridList(0.42, 0.31, 0.16, 0.14, true) guiGridListAddColumn(grid, "Player name", 0.9) loadPlayers("", grid) addEventHandler("onClientGUIChanged", search, function () loadPlayers(guiGetText(search), grid) end) addEventHandler("onClientGUIClick", grid, function () if guiGridListGetSelectedItem(grid) >= 0 then local r = guiGridListGetSelectedItem(grid) loadSMS(guiGridListGetItemText(grid, r, 1)) selectedSMS = getPlayerFromName(guiGridListGetItemText(grid, r, 1)) end end) addEventHandler("onClientGUIClick", send, function () if guiGridListGetSelectedItem(grid) >= 0 and guiGetText(sms) ~= "" and guiGetText(sms) ~= " " then local r = guiGridListGetSelectedItem(grid) triggerServerEvent("sendPlayerSMS", localPlayer, guiGridListGetItemText(grid, r, 1), guiGetText(sms)) guiSetText(sms, "") guiSetEnabled(source, false) setTimer(guiSetEnabled, 2000, 1, source, true) end end) end end end) I want if click any text and if mouse out of position it wont click
  14. Help revive system.

    addEvent("revieve",true) addEventHandler("revieve",root, function () local data = getElementData (source,"selected") if (data == true ) then ---------------and getElementData(source,"KArr") x,y,z = getElementPosition(source) Team = getPlayerTeam ( source ) spawnPlayer (source, x, y, z) spawnPlayer (source, x, y,z, 0,0, 0, 0,Team) setElementHealth (source, 100) setPedAnimation(source,false) setElementData (source,"rev",false) end end ) Okey so server side finished i want in client if player is doing sleeping animation and click it starts progress bar when finish cancel animation and set player health 100
  15. If Clicked Player Dx happens

    CLIENT local resolutionX = 1366 local resolutionY = 768 function guiCreateRelativeLabel( posX, posY, width, height,text,postGUI ) local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) return guiCreateLabel( ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( width/resolutionX )*sWidth, ( height/resolutionY )*sHeight, tostring( text ), postGUI ) end function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sWidth,sHeight = guiGetScreenSize( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx* sWidth ), ( cy* sHeight ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dxDrawRelativeRectangle( posX, posY, width, height,color,postGUI ) local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) return dxDrawRectangle( ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( width/resolutionX )*sWidth, ( height/resolutionY )*sHeight, color, postGUI ) end local x,y = guiGetScreenSize() -- Get players resolution. local sWidth,sHeight = guiGetScreenSize( ) function dxPanel() dxDrawLine(376, 360, 558, 360, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(376, 425, 558, 425, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(376, 393, 558, 393, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Say Hi", 411, 360, 578, 393, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Give money", 401, 393, 568, 426, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEvent("dx", true) addEventHandler("dx", root, function (hi) if panelOpen then return end panelOpen = true dxDrawLine(376, 360, 558, 360, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(376, 425, 558, 425, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(376, 393, 558, 393, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Say Hi", 411, 360, 578, 393, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Give money", 401, 393, 568, 426, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) addEventHandler ("onClientRender", root, dxPanel) end) if isMouseInPosition((411/resolutionX )*sWidth,(360/resolutionY )*sHeight, (578/resolutionX )*sWidth, (393/resolutionY )*sHeight) then dxDrawText("Say Hi", 411, 360, 578, 393, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler("onClientClick",root, function(bttn,state) if bttn == "left" and state == "down" then if GonnaFade then return false end local resolutionX = 1366 local resolutionY = 768 local sWidth,sHeight = guiGetScreenSize( ) if confirmWindow ~= true and isMouseInPosition((411/resolutionX )*sWidth,(360/resolutionY )*sHeight, (578/resolutionX )*sWidth, (393/resolutionY )*sHeight) then dxDrawRelativeRectangle(1070,490,180,40,tocolor(0,0,0,155),false) destroyElement(hi) outputChatBox("HI") else dxDrawText("Say Hi", 411, 360, 578, 393, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Give money", 401, 393, 568, 426, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) end end end) function test() dxDrawRelativeRectangle(1070,490,180,40,tocolor(0,0,0,155),false) end addEventHandler ("onClientRender", root, test) So i want if click "Message" it opens gui to msg someone