Jump to content

-ffs-AbodyRulez

Members
  • Posts

    60
  • Joined

  • Last visited

About -ffs-AbodyRulez

  • Birthday 30/11/1991

Details

  • Gang
    |FFS|Gaming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

-ffs-AbodyRulez's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. يعني يكون كأنو فعلا "حبل" وبسماكة معينة, لو تلاحظ في الصورة طالع مسطح
  2. السلام عليكم, البوست متكرر في القسم الانجليزي بس ماحد رد. هل ممكن تحويل الخط الى مجسم دائري بسمك معين ؟ الكود الحالي local img = dxCreateTexture("test.png") dxSetTextureEdge(img,"mirror") addEventHandler("onClientRender", root, function() x, y, z = getElementPosition(localPlayer) dxDrawMaterialLine3D (x,y,z,0,0,15,img, 0.5) end)
  3. Is it possible to make this line spherical than flat? local img = dxCreateTexture("test.png") dxSetTextureEdge(img,"mirror") addEventHandler("onClientRender", root, function() x, y, z = getElementPosition(localPlayer) dxDrawMaterialLine3D (x,y,z,0,0,15,img, 0.5) end)
  4. local ID = dbExec(db, "SELECT LAST_INSERT_ROWID() FROM joinHistory") this returns false for me, even though the database isn't empty. i'm trying to create an auto_increment column, but just found out that sqlite doesn't support auto_increment, it's only supported by MySQL. any help?
  5. Sorry for bumping this up, but i've been trying to create an Auto_increment column, tried to follow your method, but i keep getting an error dbExec failed, syntax error, any ideas?
  6. You lost me there. Here is the complete code for creating window and tabpanel. local guiWidth, guiHeight, centerX, centerY, tCenterX, tCenterY, tabWidth, tabHeight = 0 local tabPanel, monthsTab, daysTab, hoursTab, minutesTab, permTab = nil local window = nil function GUI() guiWidth, guiHeight = 0.6, 0.6 centerX, centerY = (1 / 2) - (guiWidth / 2), (1 / 2) - (guiHeight / 2) tabWidth, tabHeight = 0.32, 0.25 tCenterX, tCenterY = (1 / 2) - (tabWidth / 2), (1 / 2) - (tabHeight / 2) window = guiCreateWindow( centerX, centerY, guiWidth, guiHeight, "Alias System", true) guiWindowSetSizable (window, false) tabPanel = guiCreateTabPanel(tCenterX, tCenterY+0.355, tabWidth, tabHeight, true, window) monthsTab = guiCreateTab("Months", tabPanel) daysTab = guiCreateTab("Days", tabPanel) hoursTab = guiCreateTab("Hours", tabPanel) minutesTab = guiCreateTab("Minutes", tabPanel) permTab = guiCreateTab("Permanent", tabPanel) guiSetVisible(window, false) end addEventHandler("onClientResourceStart", resourceRoot, GUI) Btw, is adding all variables above as local defining their initial state is healthy for MTA? there is this counter i defined to local counter = 0, it didn't work, after removing the local keyword it worked, even though its not inside a function.
  7. Edited code, i completely didn't notice, been up for too long!
  8. Now this is weird, because i'm using relative window, relative tabPanel, relative everything, the size of the GUI window is always the same for all resolutions though, centered, not bigger or smaller than usual. However, only the tab is messed up. Notice the last tab "Permanent" isn't showing for a player with lower resolution. tabWidth, tabHeight = 0.32, 0.25 tCenterX, tCenterY = (1 / 2) - (tabWidth / 2), (1 / 2) - (tabHeight / 2) tabPanel = guiCreateTabPanel(tCenterX, tCenterY+0.355, tabWidth, tabHeight, true, window) monthsTab = guiCreateTab("Months", tabPanel) daysTab = guiCreateTab("Days", tabPanel) hoursTab = guiCreateTab("Hours", tabPanel) minutesTab = guiCreateTab("Minutes", tabPanel) permTab = guiCreateTab("Permanent", tabPanel) Notice i set the sorting to false, its really bugged, after sorting few times, reopening gridlist shows empty cells, but that's another problem, if anyone is aware of it, please leave a comment.
  9. After a lot of hours! i just found out !!! it receives only one string and divides its spaces! function MuteSelectedSerial(serial, seconds, reason) local name = getPlayerName(getPlayerFromSerial(serial)):gsub('#%x%x%x%x%x%x', '') executeCommandHandler("mute",source [b], name.." "..seconds.." "reason[/b]) end addEvent("onSerialMute", true) addEventHandler("onSerialMute", root, MuteSelectedSerial) MTA forum is an inspiration <3
  10. On our servers, we have a customized admin resource which has a mute system by entering the following arguments: /mute [playerName] [ Period "1d" "30m" "500"] [Reason] I searched everywhere in admin resource, but there were no straight forward function so i couldn't figure out how to export it. After many attempts, i created this function: function MuteSelectedSerial(serial, seconds, reason) local name = getPlayerName(getPlayerFromSerial(serial)):gsub('#%x%x%x%x%x%x', '') executeCommandHandler("mute",source , name, seconds, reason) end addEvent("onSerialMute", true) addEventHandler("onSerialMute", root, MuteSelectedSerial) but it will only mute the player for no specific amount or reason "its working as i'm doing /mute [playerName] only" However, i made sure that 'seconds' and 'reason' are correctly sent through the executeCommandHandler, tried tostring(seconds) tonumber(seconds) still won't work. Any ideas?
  11. Crap.. you did told me where my problem is, but i can't seem to fix it.. the "attachedElement" part is a damn mystery, that can be found in triggerServerEvent/triggerClientEvent/addEventHandler
×
×
  • Create New...