Jump to content

Rotti

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Rotti

  1. Rotti

    PlaySound3D

    i've tried it already... didn't work
  2. Rotti

    PlaySound3D

    Sorry but i have one last question... I want to set the position of the sound with setElementPosition. But the Coordinates for that are comming from a serverside scipt... how can i do this?
  3. Rotti

    PlaySound3D

    Hm it worked. thanks
  4. Rotti

    PlaySound3D

    no... But in the serverside script i have to trigger the client event first, then the loop will start. maybe the mistake is there. Here is the command: ---------- triggerClientEvent(root, "diskoparty", root) ---------
  5. Rotti

    PlaySound3D

    I don't even hear the music...
  6. Rotti

    PlaySound3D

    two triggerServerEvents???
  7. Rotti

    PlaySound3D

    So you mean something like this: --Clientside-- function disko() local song = playSound3D("Diskoparty.mp3", -2758, 968, 54, true) setSoundVolume ( song, 100 ) setSoundMinDistance ( song, 100 ) outputChatBox(":D") triggerServerEvent("looper", getRootElement()) end addEventHandler("diskoparty", root, disko) addEvent("diskoparty", true) --Serverside-- function loop() triggerClientEvent("diskoparty", root) end addEvent("looper", true) addEventHandler("looper", getRootElement(), loop)
  8. Rotti

    PlaySound3D

    One more question: If i trigger the event from the serverside script, how can i make it that everyone can hear it?
  9. Rotti

    PlaySound3D

    Thank you! It worked! This little mistake *.*
  10. Rotti

    PlaySound3D

    no... didnt work
  11. Rotti

    PlaySound3D

    Hello, I want to stream a song from my server with PlaySound3D. But if i start it it doesn't works. But if i use a radiostream it works! I just want to stream this one song. script (clientside) function disko() song = playSound3D("Diskoparty.mp3", -2758, 968, 54, true) setSoundVolume ( song, 100 ) setSoundMinDistance ( song, 100 ) outputChatBox(":D") end addCommandHandler("diskoparty", disko) Meta: "[GRS]Nitro" version="1.0" type="script" name="speed booster" description="Macht dich schnell" /> client="1.3.0-9.04555" /> Yes, there is a bit more code in the folder. The script is in cars_c.lua and the song is Diskoparty.mp3.
  12. ok thank you very much fpr your help, ill try it :DDDD
  13. ok ive understood it. BUT only one more question then its clear. When the player joins he will download the files too because they are in the meta.xml. So he will download them twice
  14. ok i just want to ask: How does it works? How can i do that? in my foulder is the script.lua the meta.xml infernus.txd and infernus.dff so i think the infernus.txd and the infernus.dff must be downloaded can you give me an example that will work? and should i change something in the meta?
  15. ok ok its a bit difficult to understand for me. will it work if i have a folder on my server where the script and the meta of the carmods are. And i have a folder where only the model files of the carmods are. Then i tell a resource that it should download the files on the computer off the client, in a folder named like the folder on my server.
  16. But then then Resource isn't started I think
  17. but he has to download the whole resource... does it works like the download when he connects to the server?
  18. ok, ok i'll test it. So is it like that: function download () downloadFile("carmods") --carmods is the name of the foulder end addEventHandler("onPlayerLogin", getRootElement(), download)
  19. ok thank you for the quick answer
  20. Not even with a short script?
  21. Hello, I have a lot of carmods on my server. But if a new Player connects he has to wait very long until the carmods are downloaded. So is it possible that the carmods will download after he has logged in? So that the new player connects, everything will download, the login gui comes, he logs in and then the carmods begin to download so that he can play while the carmods are loading.
  22. Oh sorry, i tried the first one with source instead of thPlayer, that worked
  23. It says lua:18 Bad argument @ 'warpPedIntoVehicle'
×
×
  • Create New...