Script, witch displays a notification when you sit in car

Here you go.

Citizen.CreateThread(function()
	local wasInVehicle = false
	while true do
		local inVehicle = IsPedInAnyVehicle(PlayerPedId(), false)
		if inVehicle and not wasInVehicle then
			wasInVehicle = true -- Entered vehicle
			exports['okokNotify']:Alert("", "Norint prisisegti saugos diržą, spausk [K]!", 5000, 'info')
		elseif wasInVehicle and not inVehicle then
			wasInVehicle = false -- Left vehicle
		end
		Citizen.Wait(1000)
	end
end)

I helped someone with this in another post here → Native related too cars - #2 by DrAceMisanthrope
But the code above I tweaked to serve your needs. If it works for you, please mark this response as a solution so that others can benefit from it too. Thanks!

3 Likes