ChrisT Posted August 7, 2019 Posted August 7, 2019 Szasztok van egy scriptem amivel próbálkozok de nem sikerül. --_- azt kellene ha vált az autó akkor a turbo hang hallatszódjon,.. de nem sikerül, de hiba kódot sem ír ki... segítsetek légyszíves.
ChrisT Posted September 13, 2019 Author Posted September 13, 2019 Szia... function checkVehiclesGearboxChange() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementData(vehicle, "tuning.vehicle.turbo") >= 4 then newState = getVehicleCurrentGear(vehicle) if newState ~= oldState then oldState = newState local x, y, z = getElementPosition(vehicle) local sound = playSound3D("files/turbo.mp3", x, y, z, false) setSoundMaxDistance(sound, 100) setSoundVolume(sound, 0.7) end end end setTimer(checkVehiclesGearboxChange, 500, 0)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now