function motor_fonskiyon()
local arac = getPedOccupiedVehicle(source)
if arac then
local aracadi = getVehicleName(arac)
if getVehicleEngineState(arac) == false then
setVehicleEngineState(arac, true)
outputChatBox("Engine on. Car: ["..aracadi.."]", source, 0, 153, 51, true)
startSound = playSound("files/starter.mp3", false)
elseif getVehicleEngineState(arac) == true then
setVehicleEngineState(arac, false)
outputChatBox("Engine off. Car: ["..aracadi.."]", source, 0, 153, 51, true)
end
end
end
end
addEvent("motor_event", true)
addEventHandler("motor_event", getRootElement(), motor_fonskiyon)
	Take away one "end" 
	 
	 
	Try 
	 
	 
 
function motor_fonskiyon()
	local arac = getPedOccupiedVehicle(source)
	if arac then
		local aracadi = getVehicleName(arac)
		if getVehicleEngineState(arac) == false then
			setVehicleEngineState(arac, true)
			outputChatBox("Engine on. Car: ["..aracadi.."]", source, 0, 153, 51, true)
			startSound = playSound("files/starter.mp3", false)
		elseif getVehicleEngineState(arac) == true then
			setVehicleEngineState(arac, false)
			outputChatBox("Engine off. Car: ["..aracadi.."]", source, 0, 153, 51, true)
		end
	end
end
addEvent("motor_event", true)
addEventHandler("motor_event", getRootElement(), motor_fonskiyon)