Hallo, der sound wird nicht abgespielt..
(serverseitig)
Lua
local pname = getPlayerName ( player )
local veh = _G[getPrivVehString ( pname, locknr )]
local x, y, z = getElementPosition( veh )
if isElement ( veh ) then
if vioGetElementData ( veh, "locked" ) then
vioSetElementData ( veh, "locked", false )
setVehicleLocked ( veh, false )
outputChatBox ( "Fahrzeug Aufgeschlossen!", player, 0, 0, 255 )
sound = playSound3D("song.mp3", x, y, z, true)
setSoundMaxDistance(sound, 20)
setSoundMinDistance(sound, 1)
setSoundVolume(sound, 100)
Alles anzeigen
Error: