while (seatbelt == false) then
TriggerServerEvent('InteractSound_SV:PlayWithinDistance', 0.1, 'seatbelt', 0.1)
Citizen.Wait(TIME OF SEATBELT SOUND)
end
You would need to change the code a bit but it should work with something like that.
Was thinking maybe could use the 3dme resource and have it bind them together so the cop can ask to check your seat belt and it would pop up if you click it on or off.
maybe even as simple as having the icon appear above a player if they dont wear the seat belt? restricted to say 5 meters before you cant see in anymore
Solution to seat belt warning sound with interact sound:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if not beltOn and wasInCar == true then
TriggerServerEvent('InteractSound_SV:PlayWithinDistance', 0.1, 'seatbelt', 0.1)
Citizen.Wait(HERE TIME OF SEATBELT SOUND)
end
end
end)