Daniel1zD Posted August 13, 2013 Author Posted August 13, 2013 sigue sin funcionar function onEngineOn ( infernus ) modelo = getElementModel(infernus) if modelo == 411 then--id del auto x, y, z = getElementPosition(infernus) sonido = playSound3D ( "engine.mp3", x, y, z true) setSoundMaxDistance(sound, 40) attachElements(sonido, infernus) end end addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn ) "Flaky" version="1" type="script" />
Arsilex Posted August 13, 2013 Posted August 13, 2013 function onEngineOn ( infernus ) modelo = getElementModel(source) if modelo == 411 then--id del auto x, y, z = getElementPosition(source) sonido = playSound3D ( "engine.mp3", x, y, z true) setSoundMaxDistance(sound, 40) attachElements(sonido, source) end end addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn )
Daniel1zD Posted August 13, 2013 Author Posted August 13, 2013 No entiendo cual es el error creo que el lua y el meta ya estan bien pero no se olle nada T_T
Daniel1zD Posted August 13, 2013 Author Posted August 13, 2013 Pero no se olle nada puedes intentar con el script te paso el sonido del engine http://sharesend.com/32i1t1b0
Daniel1zD Posted August 13, 2013 Author Posted August 13, 2013 usa este http://sharesend.com/jc097392 hay mas sonidos de motor
Daniel1zD Posted August 13, 2013 Author Posted August 13, 2013 Waring:loading script failed: engine/client.lua:5 ')'expected near 'true' solo sale eso en color naranja
Arsilex Posted August 13, 2013 Posted August 13, 2013 function onEngineOn ( infernus ) modelo = getElementModel(source) if modelo == 411 then--id del auto x, y, z = getElementPosition(source) sonido = playSound3D ( "engine.mp3", x, y, z, true) setSoundMaxDistance(sound, 40) attachElements(sonido, source) end end addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn )
Arsilex Posted August 14, 2013 Posted August 14, 2013 Es que llevo mucho tiempo sin scriptear esas cosas ahora estoy mas metido en arrays y jsons y mierdas asi..
Recommended Posts