Jump to content

Enkanet

Members
  • Posts

    77
  • Joined

  • Last visited

Everything posted by Enkanet

  1. local screenW, screenH = guiGetScreenSize() local fontSize = math.ceil((defaultFontSize * screenW) / (defaultScreenWidth * 1.0)) local myFont = dxCreateFont( "segoeui.ttf", fontSize ) Default Font Size should be the font size on your screen. Example, you designed it in 20pt on your screen, then write 20. Default Screen Width is screen width of your resolution. Example your resolution is 1366*768 then default screen width should be 768. Cheers.
  2. I didn't even look at the vehicle IDs. It just creates a vehicle which has an ID of between 400 and 600 or sth. Change it and enjoy. Maybe make it math.random(400, 500)? Your choise.
  3. Yeah it's uploading. Well actually, this is MTA version of the GTA5 mod, Vehicle Cannon.
  4. Hello everyone! Today I'll introduce you my new resource called vehicle_weapon! With this resource, you can throw vehicles instead of bullets from your weapons! Watch the video! Download: https://community.multitheftauto.com/in ... s&id=12150
  5. If you look at the wiki page, you will understand.
  6. Quite easy: local teamBlue = createTeam ( "Team Blue", 0, 0, 255 ) local teamRed = createTeam ( "Team Red", 255, 0, 0 ) local teams = {teamBlue,teamRed} local randomteam = teams[math.random(#teams)] function setTeams() for _, player in ipairs(getElementsByType("player")) do -- We are going to launch the script for every single player. setPlayerTeam(player, randomteam) end end addEventHandler("onResourceStart", getRootElement(), setTeams)
  7. You need to request your website first with: requestBrowserDomains
  8. The problem is solved by using getSoundLengts and getSoundMetaTags with onClientSoundDownloaded. Thanks to Koeno100. And getSoundBPM should be used with onClientSoundBeat.
  9. Hello! I want to remove the lights from an interior. How can I do so? Should I do it with shaders? Can you explain it a little bit? Thanks in advance! Thanks to everybody! I solved the problem by making a dxCreateRectangle as an overlay.
  10. Yeah sound plays properly and I can pause/play it and yeah I also added that to meta.xml. I don't really know where the problem is.
  11. SOLUTION: The problem is solved by using getSoundLength and getSoundMetaTags with onClientSoundDownloaded and getSoundBPM should be used with onClientSoundBeat. Thanks to Koeno100. --------------------------------------------------------------------------------------------------------------------------------------------- Hello everybody! I have a problem and I don't know why this happens.. I'm streaming a sound with an url. local x,y,z = getElementPosition(getLocalPlayer()) musicA = playSound3D(guiGetText(diskEditA), x,y,z) but when I try this: outputChatBox(tostring(getSoundBPM(musicA))) it returns false. Same goes for getSoundLength. It returns '0'. Can anybody help me please? EDIT: Also I can not setSoundPaused(musicA, false) after creating the sound. What's wrong with my script? EDIT2: I'm creating the 3D Sound but only I hear the sound not others. EDIT: The problem is solved by using getSoundLengts and getSoundMetaTags with onClientSoundDownloaded. Thanks to Koeno100.And getSoundBPM should be used with onClientSoundBeat.
  12. Oh, thanks lol. I'll try it.. (Glad to see clever boys around here lol.)
  13. Well, I know this but I can not really use it. Here's my code: function getInfoVehlib(data) local row = guiGridListAddRow(Tickets) griditems = guiGridListGetRowCount(Tickets) for i,ticketitems in ipairs(data) do guiGridListSetItemText(Tickets, row, 1, griditems, false, false) guiGridListSetItemText(Tickets, row, 2, ticketitems[1], false, false) guiGridListSetItemText(Tickets, row, 3, ticketitems[2], false, false) end end addEvent("sendTicketInfo", true) addEventHandler("sendTicketInfo", getRootElement(), getInfoVehlib) function drawGui() local screenW, screenH = guiGetScreenSize() main = guiCreateWindow((screenW - 466) / 2, (screenH - 370) / 2, 466, 370, "Enkanet's System", false) guiWindowSetSizable(main, false) Tickets = guiCreateGridList(14, 31, 442, 236, false, main) local number = guiGridListAddColumn(Tickets, "#", 0.08) local biletNumarasi = guiGridListAddColumn(Tickets, "Ticket Number", 0.3) local biletSahibi = guiGridListAddColumn(Tickets, "Ticket Owner", 0.6) closeBtn = guiCreateButton(253, 277, 203, 42, "Close", false, main) rastgeleBtn = guiCreateButton(14, 277, 203, 42, "Random Player", false, main) odulMemo = guiCreateMemo(54, 329, 402, 31, "", false, main) odulLabel = guiCreateLabel(14, 333, 40, 21, "Prize:", false, main) addEventHandler("onClientGUIClick", closeBtn, function() guiSetVisible(main, false) end) addEventHandler("onClientGUIClick", rastgeleBtn, function() local luckyboy = math.random(1, griditems) -- Here I get the 1st column's data. end) triggerServerEvent("getTickets", resourceRoot) end addEvent("drawGui", true) addEventHandler("drawGui", root, drawGui)
  14. Hello, everyone! As I asked above, how can I get a random data from a gridlist? Well, I have a gridlist and 3 columns. First one is something like id. It is ordering the rows one by one. I can choose one of them randomly by math.random. I can randomly choose a row by that id which is first column. Now, I want to get the second column's data which is in the same row with the number that I randomly found via 1st column. How can I do it? Thanks in advance.
  15. Enkanet

    Door Types

    Hello guys! I want to change door type of vehicles. How can I do it? Like, I want to make wing doors or butterfly doors or lambo doors.. Thanks.
  16. Okay, but what about that I owned a community and I didn't hire the VPS for a month but still have forums and facebook face etc. but someone made a server with my name. So what can I do here?
  17. Thanks but I want to report servers that are like, using someone else's scripts or doing this: Example, a server's name is FreeRoam1 and there're 2 more servers called FreeRoam2 and FreeRoam3 Now, FreeRoam1 is doing this on serverlist. || FreeRoam2 is Moved to FreeRoam1! || || FreeRoam3 is Moved to FreeRoam1! || Or, they are hacking FreeRoam2 and banning all the people with a reason of 'Moved to FreeRoam1' Now, I want to report these kind of servers. Are there any topics for it? EDIT: Just realized that the topic that you sent to me was for this So sorry..
  18. Hello, how can I report a server? Are there any such forums for this subject? I need to report a lot of servers for a lot of bad things. How can I do it?
  19. Yea but my question is how to do so 'lol. I think Nike told me the right functions. I will try my best. Actually I have a nametag system but it shows other players it doesn't show me.
×
×
  • Create New...