-
Posts
1,089 -
Joined
-
Last visited
Everything posted by Xwad
-
i just watched this video too and its still the same!! I did everythink like in the video, but the txd is still not working:/ help!!
-
Is there maybe a video about that?
-
Thanks you MrTasty that u are helping me! I already read that topic. I did this on the basis of the topic but It does not work:/ i did everythink like the in the post but its still buggy:// i have checked the dff and the names are correct, but the txd is still not working:/
-
Hi! I want to add this model to mta sa.: https://3dwarehouse.sketchup.com/model. ... da6256060d I downloaded it in SketchUp 2015 Model format and i exported it to 3ds format with SketchUp. After that i exported it to dff with 3ds max (using kams max script), and i created a txd and a col for the model. I have uploaded my dff,txd model. Please download it and try it out , and please help me fixing this. I really need that model, its very important! Thanks in advance. http://www.mediafire.com/download/02o4y ... bunker.rar So my problems are: - the col is working but very buggy(see in the downloaded files) - the dff is working but also has bugs.. Some components of the model are missing in-game..but in the modelling program the components are not missing! Only in-game Thanks in advance!
-
Ohh okay. Btw the spoilers object id is : 1000
-
https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade
-
én megcsinálom neked fele áron
-
scriptelés. Skype : obersovszkyf
-
SKype: obersovszkyf
-
Einheit one short question: whats the name of the dodos wheels compoent? misc_what? Just like on your server, when a player enters the dodo and prress g to move the gear
-
ok i have sync it now but i have a few bugs: when i enter a vehicle and hold w then the engine sound is starting but when another player stops pressing w then the sound is stopping in all vehicles.. How can i fix that? CLIENT function start_sound () local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then triggerServerEvent("start_sound", resourceRoot, veh ) end end function start_sound_client(veh) setTimer ( function () if not isElement(sound_move) then sound_move = playSound3D("files/tank_move.wav",0,0,0, true) setSoundMaxDistance(sound_move, 40) setSoundVolume(sound_move, 0.60) attachElements(sound_move, veh) end end, 200, 1 ) if not isElement(sound_track) then sound_track = playSound3D("files/tracks.wav",0,0,0, true) setSoundMaxDistance(sound_track, 40) setSoundVolume(sound_track, 0.76) attachElements(sound_track, veh) setElementData(localPlayer,"sound_track", sound_track) sound_start = playSound3D("files/start.wav",0,0,0, false) setSoundMaxDistance(sound_start, 40) setSoundVolume(sound_start, 0.5) attachElements(sound_start, veh) setTimer ( function () addEventHandler("onClientRender", root, stop_sound) end, 50, 1 ) end end addEvent("start_sound", true) addEventHandler("start_sound", root, start_sound_client) function stop_sound () local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then triggerServerEvent("stop_sound", resourceRoot, veh ) end end function stop_sound_client(veh) local vx,vy,vz = getElementVelocity(veh) if vx+vy+vz == 0 then if isElement(sound_track) then stopSound(sound_track) removeEventHandler("onClientRender", root, stop_sound) end if isElement(sound_move) then stopSound(sound_move) removeEventHandler("onClientRender", root, stop_sound) end end end addEvent("stop_sound", true) addEventHandler("stop_sound", root, stop_sound_client) function stop_sound2 () local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then triggerServerEvent("stop_sound2", resourceRoot, veh ) end end function stop_sound_client2(veh) if isElement(sound_move) then stopSound(sound_move) end end addEvent("stop_sound2", true) addEventHandler("stop_sound2", root, stop_sound_client2) function bindTheKeys () bindKey ( "w", "down", start_sound ) bindKey ( "s", "down", start_sound ) bindKey ( "w", "up", stop_sound2 ) bindKey ( "s", "up", stop_sound2 ) end addEventHandler("onClientVehicleEnter", root, bindTheKeys) SERVER function start_sound(veh) triggerClientEvent("start_sound", resourceRoot, veh) end addEvent("start_sound", true) addEventHandler("start_sound", resourceRoot, start_sound) function stop_sound(veh) triggerClientEvent("stop_sound", resourceRoot, veh) end addEvent("stop_sound", true) addEventHandler("stop_sound", resourceRoot, stop_sound) function stop_sound2(veh) triggerClientEvent("stop_sound2", resourceRoot, veh) end addEvent("stop_sound2", true) addEventHandler("stop_sound2", resourceRoot, stop_sound2) [/lua]
-
And whats the name of that program?
-
Are you sure? Take a look at this code. Its client sided and i tested it and other players can hear it. There are 'thePlayer' argumentums local sounds = {} addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) if seat ~= 0 then return end local vehicle = getPedOccupiedVehicle(thePlayer) if getElementModel(vehicle) == 480 then sounds[thePlayer] = playSound3D("files/engine.wav",0,0,0, true) setSoundMaxDistance(sounds[thePlayer], 50) setSoundVolume(sounds[thePlayer], 1) attachElements(sounds[thePlayer], vehicle) end end) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) if isElement(sounds[thePlayer]) then stopSound(sounds[thePlayer].sound) end end)
-
Hi! I have a lot of problems with sync. So what im trying to do is adding playSOund3D to a vehicle. The problem is that it's not synced with other players so they can't hear the sound, only the player can hear it who enters the car. So i know that serverside i needless for sync so its possible to sync it in client side, but i dont know how.. Please help! code: function start_sound() local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then setTimer ( function () if not isElement(sound_move) then sound_move = playSound3D("files/tank_move.wav",0,0,0, true) setSoundMaxDistance(sound_move, 40) setSoundVolume(sound_move, 0.6) attachElements(sound_move, veh) end end, 200, 1 ) if not isElement(sound_track) then sound_track = playSound3D("files/tracks.wav",0,0,0, true) setSoundMaxDistance(sound_track, 40) setSoundVolume(sound_track, 0.-- s8) --> attachElements(sound_track, veh) sound_start = playSound3D("files/start.wav",0,0,0, false) setSoundMaxDistance(sound_start, 40) setSoundVolume(sound_start, 0.5) attachElements(sound_start, veh) setTimer ( function () addEventHandler("onClientRender", root, stop_sound) end, 50, 1 ) end end end function stop_sound() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( veh ) if id == 480 then local vx,vy,vz = getElementVelocity(veh) if vx+vy+vz == 0 then if isElement(sound_track) then stopSound(sound_track) removeEventHandler("onClientRender", root, stop_sound) end if isElement(sound_move) then stopSound(sound_move) removeEventHandler("onClientRender", root, stop_sound) end end end end function stop_sound2() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( veh ) if id == 480 then if isElement(sound_move) then stopSound(sound_move) end end end function bindTheKeys (thePlayer, seat) bindKey ( "w", "down", start_sound ) bindKey ( "s", "down", start_sound ) bindKey ( "w", "up", stop_sound2 ) bindKey ( "s", "up", stop_sound2 ) end addEventHandler("onClientVehicleEnter", root, bindTheKeys)
-
?i did not understand this. Whats polygon? So is it not possible export it to dff?
-
Now i tryied exporting another .max file to dff. http://www.cadnav.com/3d-models/model-10785.html So i had download 3ds max 2010 and the dff export plugin for it. i exported the file to dff , but when i wanted to use it on my server then the mta always crashed! Pls help!
-
one more question: why is the 'sound_track' not stopping when the vehicles velocity is 0? and the sync is also not working:/ COuld you maybe help me how to sync it? like in the code before local sound_track = {} local sound_start = {} local sound_move = {} function start_sound(thePlayer) local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then if not isElement(sound_track[thePlayer]) then sound_track[thePlayer] = playSound3D("files/tracks.wav",0,0,0, true) setSoundMaxDistance(sound_track[thePlayer], 40) setSoundVolume(sound_track[thePlayer], 0.7) attachElements(sound_track[thePlayer], veh) sound_start[thePlayer] = playSound3D("files/start.wav",0,0,0, false) setSoundMaxDistance(sound_start[thePlayer], 40) setSoundVolume(sound_start[thePlayer], 0.5) attachElements(sound_start[thePlayer], veh) setTimer ( function () if not isElement(sound_move) then sound_move[thePlayer] = playSound3D("files/tank_move.wav",0,0,0, true) setSoundMaxDistance(sound_move[thePlayer], 40) setSoundVolume(sound_move[thePlayer], 0.7) attachElements(sound_move[thePlayer], veh) end end, 200, 1 ) setTimer ( function () addEventHandler("onClientRender", root, stop_sound) end, 50, 1 ) end end end function stop_sound(thePlayer, seat) local veh = getPedOccupiedVehicle(thePlayer) local vx,vy,vz = getElementVelocity(veh) local id = getElementModel ( veh ) if id == 480 then if vx+vy+vz == 0 then if isElement(sound_track[thePlayer]) then stopSound(sound_track[thePlayer]) removeEventHandler("onClientRender", root, stop_sound) end if isElement(sound_move[thePlayer]) then stopSound(sound_move[thePlayer]) removeEventHandler("onClientRender", root, stop_sound) end end end end function stop_sound2(thePlayer) local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( veh ) if id == 480 then if isElement(sound_move[thePlayer]) then stopSound(sound_move[thePlayer]) end end end function bindTheKeys () bindKey ( "w", "down", start_sound ) bindKey ( "s", "down", start_sound ) bindKey ( "w", "up", stop_sound2 ) bindKey ( "s", "up", stop_sound2 ) end addEventHandler("onClientResourceStart",root, bindTheKeys)
-
WOW its working now without bugs i hope!! Thanks!
-
the onVehicleDemage is not always demaging so i tryied to make it with attaching a colShape to the missle. The problem is that its not creating the exlposion when the col has been hitted. function shapeHit() if getElementType ( targetElem ) == "object" then local x,y,z = getElementPosition(veh1) createExplosion ( x,y,z, 10) end end addEventHandler ( "onColShapeHit", col1, shapeHit )
-
the sound is not stopping. error in line 15 debug: attempt to indexfield '?' (a userdata value)
-
Not wroking.. sometimes its the same (sound is stopping for other vehicles too) , and sometimes the sound does not stop when the player is exiting the vehicle.
-
Ok now i have sync it with server and its working, but i find bug in my script, that i cant fix. As you can see there is an event (onClientVehicleExit) which will be triggered if a client exits a vehicle. for this event i added a function which will stop the sound. The problem is that its triggering for all players. and i want to make that the event (onClientVehicleExit) will be only triggering when that player exits the vehicle who entered it. code: CLIENT function engine(thePlayer, seat) local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 480 then triggerServerEvent("engine_server", resourceRoot, veh ) end end addEventHandler("onClientVehicleEnter", getRootElement(), engine) function engine_client(veh) local sound_engine = playSound3D("files/engine.wav",0,0,0, true) setSoundMaxDistance( sound_engine, 50 ) setSoundVolume(sound_engine, 1) attachElements( sound_engine, veh ) setElementData (localPlayer, "sound_engine", sound_engine) end addEvent("engine_client", true) addEventHandler("engine_client", root, engine_client) function stop(veh, thePlayer, seat) triggerServerEvent("stop", resourceRoot, veh ) end addEventHandler("onClientVehicleExit",root, stop) function stop_client(veh) local sound_engine = getElementData ( localPlayer, "sound_engine" ) stopSound(sound_engine) end addEvent("stop", true) addEventHandler("stop", root, stop_client) SERVER function engine_server(veh) triggerClientEvent("engine_client", resourceRoot, veh) end addEvent("engine_server", true) addEventHandler("engine_server", resourceRoot, engine_server) function stop(veh) triggerClientEvent("stop", resourceRoot, veh) end addEvent("stop", true) addEventHandler("stop", resourceRoot, stop)
-
Yeah i already did that, thanks.