Rotti
Members-
Posts
61 -
Joined
-
Last visited
Everything posted by Rotti
-
i've tried it already... didn't work
-
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?
-
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) ---------
-
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)
-
One more question: If i trigger the event from the serverside script, how can i make it that everyone can hear it?
-
Thank you! It worked! This little mistake *.*
-
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.
-
ok thank you very much fpr your help, ill try it :DDDD
-
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
-
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?
-
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.
-
But then then Resource isn't started I think
-
but he has to download the whole resource... does it works like the download when he connects to the server?
-
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)
-
ok thank you for the quick answer
-
Not even with a short script?
-
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.
-
Oh sorry, i tried the first one with source instead of thPlayer, that worked
-
It says lua:18 Bad argument @ 'warpPedIntoVehicle'
