addEventHandler("onClientKey",root,function(button,pressed)
if isPlayerInVehicle(localPlayer) then
local veh=getPlayerOccupiedVehicle (localPlayer)
local x,y,z = getElementPosition(veh)
if button=="8" and pressed==true then
triggerEvent("wlaczPoganiacz",root,veh,x,y,z)
elseif button=="8" and pressed==false then
triggerEvent("wylaczPoganiacz",root,veh)
end
end
end)
addEvent("wlaczPoganiacz",true)
addEventHandler("wlaczPoganiacz",getResourceRootElement(getThisResource()),function(veh,x,y,z)
poganiacz=playSound3D("zyla.ogg",x,y,z,true)
attachElements(poganiacz,veh)
end)
addEvent("wylaczPoganiacz",true)
addEventHandler("wylaczPoganiacz",getResourceRootElement(getThisResource()),function(veh)
destroyElement(poganiacz)
end)
how can i make it play for all player on server? not just me