Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. I still remember the DP days, the switch from MTA:SA race to MTA:SA Deathmatch DP 1.0 (2008). Glad the project is still alive
  2. Amazing work! Had alot of fun yesterday playing with the script.
  3. But will it become open-source? So that other experienced web-developers can contribute?
  4. Any updates? Can we help with updates or something?
  5. Would be awesome if the community would be open source. Plus the con "security by obscurity doesn’t “work” anymore" would be solved if a framework is used like Laravel in combination with Vue or something for better security. And the con "slightly more effort (as we’ve to separate stuff like the decompiler)" can be solved with a private backend repository. Keep u the good work!
  6. addEventHandler("onClientResourceStart", root, function() mywindow = guiCreateWindow(681, 407, 378, 372, "Radio", false) guiWindowSetSizable(mywindow, false) hardstyleB = guiCreateButton(16, 31, 103, 43, "Hardstyle", false, mywindow ) closeB = guiCreateButton(144, 330, 94, 32, "Close", false, mywindow ) addEventHandler("onClientGUIClick", closeB, closewindow, false) addEventHandler("onClientGUIClick", hardstyleB, theradio, false) guiSetVisible(mywindow,false) end) -- Your onclick button trigger function theradio () if (source == hardstyleB) then triggerServerEvent("onRadio", resourceRoot, localPlayer) end end local hardstyle -- Make a new 3D sound function startClientRadio(x,y,z, player) -- destroy the last sound if exist if (isElement(hardstyle)) destroyElement(hardstyle) end hardstyle = playSound3D("http://listen.hardstyle.nu/listen.pls", x, y, z) setSoundMaxDistance(hardstyle, 40) attachElements(hardstyle, player); end addEvent("startClientRadio", true) addEventHandler("startClientRadio", root, startClientRadio) Server: -- Start the radio for everyone function startRadio (player) local radioX, radioY, radioZ = getElementPosition(player) outputChatBox("Radio is now playing!", player, 255, 0, 0) triggerClientEvent(root, "startClientRadio", root, radioX, radioY, radioZ, player) end addEvent("onRadio", true) addEventHandler("onRadio", root, startRadio) Note: newly joined players are not hearing the sound
  7. You need to make a trigger to the server to sync it with all the players. https://wiki.multitheftauto.com/wiki/TriggerServerEvent https://wiki.multitheftauto.com/wiki/TriggerClientEvent Flow: Click on button -> Make call to server -> Server makes call to the client to play the hardstyle stream. (Nice music taste btw)
  8. The reason why we compiler that script is because we didn't want tot have multiple copys of oud script going arround The web without giving credits to US. We didnt added any back door (ask an MTA dev if you want). Wat did you exactly want tot change? I'm btw [DenR]Danny
  9. Then you should PM a admin about it. Someone like @ccw or @darkdreamingdan
  10. Check out their contact page: http://www.delux-host.com/main/contact Give them a call, or mail them.
  11. Awesome idea, but does people with bad computers have any disadvantages?
  12. How much RAM does mta server take up? MTA normally takes arrond 200-400mb
  13. I remember that vehicle nodes has all those data if i'm right. Check out crystalmv's his NPC HLC Traffic script: http://crystalmv.net84.net/pages/scripts.php
  14. And why should you guys buy that expensive SSL certs if you barely got money for it? You always can go with let's encrypt, it's free. But good to know that the money will go to the community instead of vacations hehe And what are you guys doing with sorting based on players, and server names?
  15. Are there any restrictions for example how much top position we can buy? It's now 4 euro's, so arround 50 cents per day. But when the price is 6 euro's it's arround 0.85 cents per day. So when you want to pay for a year it will cost 312 euro's (based on the 6 euro per week) for one server. So 312 * 7 = 2184 euros. So where is this money going to? (If I may ask)
  16. https://wiki.multitheftauto.com/wiki/Is ... nputActive
  17. denny199

    Drop?

    Use this function: function getPositionInfrontOfElement(element, meters) local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX - math.sin(math.rad(rotation)) * meters posY = posY + math.cos(math.rad(rotation)) * meters return posX, posY, posZ end
  18. denny199

    Help Please!

    Well, how much skins do you have in your database? If you have 100 skins, then you will make 100 requests to your webserver via fetchRemote
  19. It's Blaster, everyone run away!
  20. What's exactly not working, are the models DFF not returning back to normal, or the models texture?
  21. Alternative you could use a command for this instead of a timer. An "for", "while" or "timers" are pretty bad for this purpose.
  22. Didn't you mean? getElementData
×
×
  • Create New...