Hallo liebe Community,
Ich habe hier einen Ausschnitt aus einem Radio System:
Lua
local radioName = xmlNodeGetAttribute ( nodeStation, "name" )
local URL = xmlNodeGetAttribute ( nodeStation, "URL" )
sound = playSound ( URL )
guiSetText ( label, radioName )
guiSetVisible ( label, true )
Ich wollte das Script auf playSound 3D haben und es ans Auto attachen!
Ich hab also folgendes gemacht:
Lua
local radioName = xmlNodeGetAttribute ( nodeStation, "name" )
local URL = xmlNodeGetAttribute ( nodeStation, "URL" )
sound = playSound3D ( URL, 0, 0, 0, false )
attachElements ( veh, sound )
guiSetText ( label, radioName )
guiSetVisible ( label, true )
Nur jetzt wird irgendwie der Sound nicht abgespielt, ich kann ihn zumindest nicht hören!
Ich hoffe ihr könnt mir helfen!
Ach übrigens, es ist nur ein Ausschnitt aus dem Script!
Mit freundlichen Grüßen