@The Best مثآل ع جدول آلسيآرآت ..
addEventHandler("onClientPreRender", root,
function(vehicle)
if getVehicleDoorOpenRatio ( vehicle, i ) then
local PosX,PosY,PosZ = getElementPosition(localPlayer)
local PosXX,PosYY,PosZZ = getElementPosition(vehicle)
if getDistanceBetweenPoints3D(PosX,PosY,PosZ,PosXX,PosYY,PosZZ) then
if sound and isElement ( sound ) then return end
PlaySound3D("sound.mp3",x,y,z)
end
end
end
end)